#include <config.h>
#include <corax/syscall.h>
-/* FIXME: Add syscall stubs for amd64/Intel64 */
+ /* FIXME: Add syscall stubs for amd64/Intel64 */
.global fork
fork:
pushl %ebx
movl $SYS_FORK, %eax
- int $SYSCALL_POSIX
+ int $SYSCALL_POSIX
popl %ebx
ret
pushl %ebx
movl $SYS_VFORK, %eax
- int $SYSCALL_POSIX
+ int $SYSCALL_POSIX
popl %ebx
ret
-.global exit
-exit:
+.global _exit
+_exit:
pushl %ebx
movl $SYS_EXIT, %eax
movl 8(%esp), %ebx
- int $SYSCALL_POSIX
+ int $SYSCALL_POSIX
popl %ebx
ret
popl %ebx
ret
-.global wait
-wait:
+ .global wait
+ wait:
pushl %ebx
movl $SYS_WAIT, %eax
popl %ebx
ret
-.global waitpid
-waitpid:
+ .global waitpid
+ waitpid:
pushl %ebx
movl $SYS_WAITPID, %eax
popl %ebx
ret
-.global waitid
-waitid:
+ .global waitid
+ waitid:
pushl %ebx
movl $SYS_WAITID, %eax
popl %ebx
ret
-.global setsid
-setsid:
+ .global setsid
+ setsid:
pushl %ebx
movl $SYS_SETSID, %eax