]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/arch-arm/syscalls/prctl.S
DO NOT MERGE Re-add .save directive for arm assembler code.
[android-sdk/platform-bionic.git] / libc / arch-arm / syscalls / prctl.S
1 /* Generated by gensyscalls.py. Do not edit. */
3 #include <private/bionic_asm.h>
5 ENTRY(prctl)
6     mov     ip, sp
7     .save   {r4, r5, r6, r7}
8     stmfd   sp!, {r4, r5, r6, r7}
9     .cfi_def_cfa_offset 16
10     .cfi_rel_offset r4, 0
11     .cfi_rel_offset r5, 4
12     .cfi_rel_offset r6, 8
13     .cfi_rel_offset r7, 12
14     ldmfd   ip, {r4, r5, r6}
15     ldr     r7, =__NR_prctl
16     swi     #0
17     ldmfd   sp!, {r4, r5, r6, r7}
18     .cfi_def_cfa_offset 0
19     cmn     r0, #(MAX_ERRNO + 1)
20     bxls    lr
21     neg     r0, r0
22     b       __set_errno
23 END(prctl)