Stephen Smalley | 5eb686d | 2012-01-13 07:45:16 -0500 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame] | 2 | #include <linux/err.h> |
Stephen Smalley | 5eb686d | 2012-01-13 07:45:16 -0500 | [diff] [blame] | 3 | #include <machine/asm.h> |
| 4 | #include <sys/linux-syscalls.h> |
| 5 | |
| 6 | ENTRY(lremovexattr) |
Matthieu Castet | faa0fdb | 2013-01-16 14:02:50 +0100 | [diff] [blame] | 7 | mov ip, r7 |
Stephen Smalley | 5eb686d | 2012-01-13 07:45:16 -0500 | [diff] [blame] | 8 | ldr r7, =__NR_lremovexattr |
| 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 |
Stephen Smalley | 5eb686d | 2012-01-13 07:45:16 -0500 | [diff] [blame] | 15 | END(lremovexattr) |