From: Matthias Kruk Date: Sun, 26 Jul 2020 04:16:46 +0000 (+0900) Subject: libc: Add _exit syscall stub X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=ec9f427586ca205b85686efb49de325b233919b6;p=corax libc: Add _exit syscall stub --- diff --git a/libc/syscall.S b/libc/syscall.S index 804527a..21c6146 100644 --- a/libc/syscall.S +++ b/libc/syscall.S @@ -75,6 +75,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