From 0241d1ab4b66ccf08c4a8b5a87bdd74c86bd005c Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sun, 17 May 2020 14:45:08 +0900 Subject: [PATCH] libc: Add implementation for _exit(), add vfork() dummy implementation --- libc/syscall.S | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libc/syscall.S b/libc/syscall.S index 804527a..d662ea4 100644 --- a/libc/syscall.S +++ b/libc/syscall.S @@ -67,6 +67,7 @@ debug: ret fork: +vfork: pushl %ebx movl $SYS_FORK, %eax @@ -75,6 +76,16 @@ fork: popl %ebx ret +_exit: + pushl %ebx + + movl $SYS_EXIT, %eax + movl 8(%esp), %ebx + int $SYSCALL_POSIX + + popl %ebx + ret + execeve: pushl %ebx -- 2.47.3