blob: 5a6034c4288da8acd5798d3fdf85d4bb56cc3f89 [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(pipe)
Matthieu Castetfaa0fdb2013-01-16 14:02:50 +01007 mov ip, r7
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08008 ldr r7, =__NR_pipe
9 swi #0
Matthieu Castetfaa0fdb2013-01-16 14:02:50 +010010 mov r7, ip
Elliott Hughes9aceab52013-03-12 14:57:30 -070011 cmn r0, #(MAX_ERRNO + 1)
12 bxls lr
13 neg r0, r0
14 b __set_errno
Kenny Rootfb723c82011-02-17 10:47:44 -080015END(pipe)