Elliott Hughes | 1ad05db | 2012-09-06 11:24:45 -0700 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame^] | 2 | #include <asm/unistd.h> |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame] | 3 | #include <linux/err.h> |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 4 | #include <machine/asm.h> |
Elliott Hughes | 1ad05db | 2012-09-06 11:24:45 -0700 | [diff] [blame] | 5 | |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 6 | ENTRY(munlockall) |
Elliott Hughes | 1ad05db | 2012-09-06 11:24:45 -0700 | [diff] [blame] | 7 | movl $__NR_munlockall, %eax |
8 | int $0x80 | ||||
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame] | 9 | cmpl $-MAX_ERRNO, %eax |
Elliott Hughes | 1ad05db | 2012-09-06 11:24:45 -0700 | [diff] [blame] | 10 | jb 1f |
11 | negl %eax | ||||
12 | pushl %eax | ||||
13 | call __set_errno | ||||
14 | addl $4, %esp | ||||
15 | orl $-1, %eax | ||||
16 | 1: | ||||
17 | ret | ||||
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 18 | END(munlockall) |