| Rom Lemarchand | d206b56 | 2013-06-06 14:29:40 -0700 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
| 2 | #include <asm/unistd.h> | ||||
| 3 | #include <linux/err.h> | ||||
| 4 | #include <machine/asm.h> | ||||
| 5 | |||||
| 6 | ENTRY(swapoff) | ||||
| 7 | mov ip, r7 | ||||
| 8 | ldr r7, =__NR_swapoff | ||||
| 9 | swi #0 | ||||
| 10 | mov r7, ip | ||||
| 11 | cmn r0, #(MAX_ERRNO + 1) | ||||
| 12 | bxls lr | ||||
| 13 | neg r0, r0 | ||||
| 14 | b __set_errno | ||||
| 15 | END(swapoff) | ||||