]> git.corax.cc Git - corax/commitdiff
Add assembly stub for sigaction syscall to klibc
authorMatthias Kruk <m@m10k.eu>
Tue, 14 Jan 2020 10:56:13 +0000 (19:56 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 14 Jan 2020 10:56:13 +0000 (19:56 +0900)
kernel/klibc/posixcall.S

index 9d7479fea77c63b1714a915b8e92e45edb2a94ea..379621597ae3b65c91120fca00782cc874e6b340 100644 (file)
@@ -14,6 +14,7 @@
        .global sbrk
        .global mmap
        .global munmap
+       .global sigaction
 
 #if FEATURE(DEBUG_SYSDEBUG)
        .global debug
@@ -106,6 +107,18 @@ munmap:
        popl    %ebx
        ret
 
+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
+
 #if FEATURE(DEBUG_SYSDEBUG)
 debug:
        pushl   %ebx