blob: a0cbc0e271bf86972b4e1620660a34490f3f712f [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Rom Lemarchandd206b562013-06-06 14:29:40 -07004
Dan Alberte35fd482014-08-08 15:19:20 -07005 .hidden __set_errno
6
Rom Lemarchandd206b562013-06-06 14:29:40 -07007ENTRY(swapoff)
8 pushl %ebx
Christopher Ferris15b91e92014-05-29 18:17:09 -07009 .cfi_def_cfa_offset 8
Christopher Ferrise4bc7562014-01-06 16:39:10 -080010 .cfi_rel_offset ebx, 0
Rom Lemarchandd206b562013-06-06 14:29:40 -070011 mov 8(%esp), %ebx
12 movl $__NR_swapoff, %eax
13 int $0x80
14 cmpl $-MAX_ERRNO, %eax
15 jb 1f
16 negl %eax
17 pushl %eax
18 call __set_errno
19 addl $4, %esp
Rom Lemarchandd206b562013-06-06 14:29:40 -0700201:
21 popl %ebx
22 ret
23END(swapoff)