6b53c2349a
I've left the exit_group syscall as _exit because otherwise we'd have to convince the compiler that our _exit (which just calls __exit_group) is actually "noreturn", and it seems like that would be less clean than just cutting out the middleman. We'll just have to trust ourselves not to add anything to SYSCALLS.TXT that ought to be private but that only has a single leading underscore. Hopefully we can manage that. Change-Id: Iac47faea9f516186e1774381846c54cafabc4354
23 lines
412 B
ArmAsm
23 lines
412 B
ArmAsm
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
#include <asm/unistd.h>
|
|
#include <linux/err.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(__exit)
|
|
pushl %ebx
|
|
mov 8(%esp), %ebx
|
|
movl $__NR_exit, %eax
|
|
int $0x80
|
|
cmpl $-MAX_ERRNO, %eax
|
|
jb 1f
|
|
negl %eax
|
|
pushl %eax
|
|
call __set_errno
|
|
addl $4, %esp
|
|
orl $-1, %eax
|
|
1:
|
|
popl %ebx
|
|
ret
|
|
END(__exit)
|