From 2a16c1f6f9118e7127d532421ae19b959b3f1d87 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 20 Aug 2022 00:00:52 +0200 Subject: user/libc: don't access the old stack from the new thread at all --- src/user/lib/thread.c | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/user/lib/thread.c (limited to 'src/user/lib/thread.c') 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 -#include -#include -#include - -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); - } -} -- cgit v1.2.3