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