From: Matthias Kruk Date: Fri, 1 May 2020 09:40:17 +0000 (+0900) Subject: libc: Add debug and sigaction syscall stubs X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=8be32cc2735d220ea76c6d5a0441a82ccd534eb0;p=corax libc: Add debug and sigaction syscall stubs --- diff --git a/libc/syscall.S b/libc/syscall.S index 9efebd8..438e141 100644 --- a/libc/syscall.S +++ b/libc/syscall.S @@ -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