summaryrefslogtreecommitdiff
path: root/src/user/lib/thread.c
diff options
context:
space:
mode:
authordzwdz2022-08-20 00:00:52 +0200
committerdzwdz2022-08-20 00:00:52 +0200
commit2a16c1f6f9118e7127d532421ae19b959b3f1d87 (patch)
treea1b5134cc4a460e38e02e4bb2103a7c06d255198 /src/user/lib/thread.c
parent040bb34290c9a4305e13637e002060411e5a8385 (diff)
user/libc: don't access the old stack from the new thread at all
Diffstat (limited to 'src/user/lib/thread.c')
-rw-r--r--src/user/lib/thread.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/user/lib/thread.c b/src/user/lib/thread.c
deleted file mode 100644
index f7353ad..0000000
--- a/src/user/lib/thread.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <camellia/flags.h>
-#include <camellia/syscalls.h>
-#include <stdlib.h>
-#include <user/lib/thread.h>
-
-void thread_create(int flags, void (*fn)(void*), void *arg) {
- if (!_syscall_fork(flags | FORK_SHAREMEM | FORK_SHAREHANDLE, NULL)) {
- void *stack = malloc(4096);
- chstack(arg, fn, stack + 4096);
- }
-}