From ab6b44f5197e4c6c19f225f909035385d37883b4 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 2 Sep 2018 03:53:32 +0200 Subject: foolsnake showcasing multithreading and our console --- newlib/syscalls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'newlib') diff --git a/newlib/syscalls.c b/newlib/syscalls.c index 3cd1f95..532f8b5 100644 --- a/newlib/syscalls.c +++ b/newlib/syscalls.c @@ -74,6 +74,11 @@ int _fork(void) return syscall(SYSCALL_FORK,0,0,0); } +int _clone(void) +{ + return syscall(SYSCALL_CLONE,0,0,0); +} + int _getpid(void) { return syscall(SYSCALL_GETPID,0,0,0); -- cgit v1.2.3