From ec9f427586ca205b85686efb49de325b233919b6 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sun, 26 Jul 2020 13:16:46 +0900 Subject: [PATCH] libc: Add _exit syscall stub --- libc/syscall.S | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libc/syscall.S b/libc/syscall.S index 804527a..21c6146 100644 --- a/libc/syscall.S +++ b/libc/syscall.S @@ -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 -- 2.47.3