cda62094ef
This lets us move all the ARM syscall stubs over to the kernel <asm/unistd.h>. Our generated <sys/linux-syscalls.h> is now unused, but I'll remove that in a later change. Change-Id: Ie5ff2cc4abce1938576af7cbaef615a79c7f310d
18 lines
429 B
ArmAsm
18 lines
429 B
ArmAsm
/* autogenerated by gensyscalls.py */
|
|
#include <asm/unistd.h>
|
|
#include <linux/err.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(getsockopt)
|
|
mov ip, sp
|
|
.save {r4, r5, r6, r7}
|
|
stmfd sp!, {r4, r5, r6, r7}
|
|
ldmfd ip, {r4, r5, r6}
|
|
ldr r7, =__NR_getsockopt
|
|
swi #0
|
|
ldmfd sp!, {r4, r5, r6, r7}
|
|
cmn r0, #(MAX_ERRNO + 1)
|
|
bxls lr
|
|
neg r0, r0
|
|
b __set_errno
|
|
END(getsockopt)
|