Trevor Drake | 49ea11e | 2013-10-05 21:33:20 +0100 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
maxwen | 27116ba | 2015-08-14 21:41:28 +0200 | [diff] [blame] | 2 | |
3 | #ifdef BIONIC_L | ||||
4 | # include <private/bionic_asm.h> | ||||
5 | #else | ||||
6 | # include <asm/unistd.h> | ||||
7 | # include <linux/err.h> | ||||
8 | # include <machine/asm.h> | ||||
9 | #endif | ||||
Trevor Drake | 49ea11e | 2013-10-05 21:33:20 +0100 | [diff] [blame] | 10 | |
11 | .text | ||||
12 | .type swapoff, @function | ||||
13 | .globl swapoff | ||||
14 | .align 4 | ||||
15 | |||||
16 | swapoff: | ||||
17 | pushl %ebx | ||||
18 | mov 8(%esp), %ebx | ||||
19 | movl $__NR_swapoff, %eax | ||||
20 | int $0x80 | ||||
21 | cmpl $-MAX_ERRNO, %eax | ||||
22 | jb 1f | ||||
23 | negl %eax | ||||
24 | pushl %eax | ||||
25 | call __set_errno | ||||
26 | addl $4, %esp | ||||
27 | orl $-1, %eax | ||||
28 | 1: | ||||
29 | popl %ebx | ||||
30 | ret | ||||
31 |