]> git.corax.cc Git - corax/commitdiff
libc: Add implementation for _exit(), add vfork() dummy implementation
authorMatthias Kruk <m@m10k.eu>
Sun, 17 May 2020 05:45:08 +0000 (14:45 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 17 May 2020 05:45:36 +0000 (14:45 +0900)
libc/syscall.S

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