]> git.corax.cc Git - corax/commitdiff
libc: Add debug and sigaction syscall stubs
authorMatthias Kruk <m@m10k.eu>
Fri, 1 May 2020 09:40:17 +0000 (18:40 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 1 May 2020 09:40:17 +0000 (18:40 +0900)
libc/syscall.S

index 9efebd86ede86da8596f9a9b0cb2d2c4bfe93759..438e141098ded3c839f20128a4b3e28f56780487 100644 (file)
@@ -245,3 +245,28 @@ execfve:
 
        popl    %ebx
        ret
+
+.global debug
+debug:
+       pushl   %ebx
+
+       movl    $SYS_DEBUG, %eax
+       movl    8(%esp), %ebx
+       movl    12(%esp), %ecx
+       int     $SYSCALL_POSIX
+
+       popl    %ebx
+       ret
+
+.global sigaction
+sigaction:
+       pushl   %ebx
+
+       movl    $SYS_SIGACTION, %eax
+       movl    8(%esp), %ebx
+       movl    12(%esp), %ecx
+       movl    16(%esp), %edx
+       int     $SYSCALL_POSIX
+
+       popl    %ebx
+       ret