summaryrefslogtreecommitdiff
path: root/src/library/grapes/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/grapes/syscall.c')
-rw-r--r--src/library/grapes/syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library/grapes/syscall.c b/src/library/grapes/syscall.c
index 5a1a26e..a00d9e8 100644
--- a/src/library/grapes/syscall.c
+++ b/src/library/grapes/syscall.c
@@ -25,3 +25,7 @@ void process_exit(int retval) {
void printk(char* str) {
call(4, (unsigned)str, 0, 0, 0, 0);
}
+
+void thread_new(void (*entry)(void*), void *data) {
+ call(5, (unsigned)entry, (unsigned)data, 0, 0, 0);
+}