]> git.corax.cc Git - corax/commitdiff
libc: Add _exit syscall stub
authorMatthias Kruk <m@m10k.eu>
Sun, 26 Jul 2020 04:16:46 +0000 (13:16 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 26 Jul 2020 04:16:46 +0000 (13:16 +0900)
libc/syscall.S

index 804527aa33e19e36a155f195e611165d5bad673e..21c614651d02eb01e087e094fd39a9890963d43a 100644 (file)
@@ -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