232163cf70
Change-Id: I6ed63af8dfc2368e211420389fa8af4d5dc0908f
22 lines
405 B
ArmAsm
22 lines
405 B
ArmAsm
/* autogenerated by gensyscalls.py */
|
|
#include <asm/unistd.h>
|
|
#include <linux/err.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(setuid)
|
|
pushl %ebx
|
|
mov 8(%esp), %ebx
|
|
movl $__NR_setuid32, %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(setuid)
|