blob: 940a11a496d43977124fab8976af8b3a6dc12370 [file] [log] [blame]
Elliott Hughes1ad05db2012-09-06 11:24:45 -07001/* autogenerated by gensyscalls.py */
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07002#include <asm/unistd.h>
Elliott Hughes9aceab52013-03-12 14:57:30 -07003#include <linux/err.h>
Elliott Hughes7582a9c2013-02-06 17:08:15 -08004#include <machine/asm.h>
Elliott Hughes1ad05db2012-09-06 11:24:45 -07005
Elliott Hughes7582a9c2013-02-06 17:08:15 -08006ENTRY(munlockall)
Elliott Hughes1ad05db2012-09-06 11:24:45 -07007 movl $__NR_munlockall, %eax
8 int $0x80
Elliott Hughes9aceab52013-03-12 14:57:30 -07009 cmpl $-MAX_ERRNO, %eax
Elliott Hughes1ad05db2012-09-06 11:24:45 -070010 jb 1f
11 negl %eax
12 pushl %eax
13 call __set_errno
14 addl $4, %esp
15 orl $-1, %eax
161:
17 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080018END(munlockall)