blob: f2d6ddb516ab85609e6a3d1e9f578d397e9e18a5 [file] [log] [blame]
Rom Lemarchandd206b562013-06-06 14:29:40 -07001/* autogenerated by gensyscalls.py */
2#include <linux/err.h>
3#include <machine/asm.h>
4#include <asm/unistd.h>
5
6ENTRY(swapoff)
7 pushl %ebx
8 mov 8(%esp), %ebx
9 movl $__NR_swapoff, %eax
10 int $0x80
11 cmpl $-MAX_ERRNO, %eax
12 jb 1f
13 negl %eax
14 pushl %eax
15 call __set_errno
16 addl $4, %esp
17 orl $-1, %eax
181:
19 popl %ebx
20 ret
21END(swapoff)