blob: 25832efdf775c08471fa27b6ceb10dd7f563f717 [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
Rom Lemarchandd206b562013-06-06 14:29:40 -07005ENTRY(swapoff)
6 mov ip, r7
Christopher Ferrisf5a91232016-04-27 18:31:02 -07007 .cfi_register r7, ip
Rom Lemarchandd206b562013-06-06 14:29:40 -07008 ldr r7, =__NR_swapoff
9 swi #0
10 mov r7, ip
Christopher Ferrisf5a91232016-04-27 18:31:02 -070011 .cfi_restore r7
Rom Lemarchandd206b562013-06-06 14:29:40 -070012 cmn r0, #(MAX_ERRNO + 1)
13 bxls lr
14 neg r0, r0
Elliott Hughes7efad832014-09-08 15:25:01 -070015 b __set_errno_internal
Rom Lemarchandd206b562013-06-06 14:29:40 -070016END(swapoff)