The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame^] | 2 | #include <linux/err.h> |
Kenny Root | fb723c8 | 2011-02-17 10:47:44 -0800 | [diff] [blame] | 3 | #include <machine/asm.h> |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 4 | #include <sys/linux-syscalls.h> |
5 | |||||
Kenny Root | fb723c8 | 2011-02-17 10:47:44 -0800 | [diff] [blame] | 6 | ENTRY(pipe) |
Matthieu Castet | faa0fdb | 2013-01-16 14:02:50 +0100 | [diff] [blame] | 7 | mov ip, r7 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 8 | ldr r7, =__NR_pipe |
9 | swi #0 | ||||
Matthieu Castet | faa0fdb | 2013-01-16 14:02:50 +0100 | [diff] [blame] | 10 | mov r7, ip |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame^] | 11 | cmn r0, #(MAX_ERRNO + 1) |
12 | bxls lr | ||||
13 | neg r0, r0 | ||||
14 | b __set_errno | ||||
Kenny Root | fb723c8 | 2011-02-17 10:47:44 -0800 | [diff] [blame] | 15 | END(pipe) |