blob: c650752fcc4e59e886c94c075614bd814c7de434 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/* autogenerated by gensyscalls.py */
Elliott Hughes9aceab52013-03-12 14:57:30 -07002#include <linux/err.h>
Kenny Rootfb723c82011-02-17 10:47:44 -08003#include <machine/asm.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08004#include <sys/linux-syscalls.h>
5
Kenny Rootfb723c82011-02-17 10:47:44 -08006ENTRY(prctl)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08007 mov ip, sp
8 .save {r4, r5, r6, r7}
9 stmfd sp!, {r4, r5, r6, r7}
10 ldmfd ip, {r4, r5, r6}
11 ldr r7, =__NR_prctl
12 swi #0
13 ldmfd sp!, {r4, r5, r6, r7}
Elliott Hughes9aceab52013-03-12 14:57:30 -070014 cmn r0, #(MAX_ERRNO + 1)
15 bxls lr
16 neg r0, r0
17 b __set_errno
Kenny Rootfb723c82011-02-17 10:47:44 -080018END(prctl)