summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/syscalls
diff options
context:
space:
mode:
authorRom Lemarchand <romlem@google.com>2013-06-06 14:29:40 -0700
committerRom Lemarchand <romlem@google.com>2013-06-25 13:18:03 -0700
commitd206b560e72e791b5dfeb339b5f7c18354bf95fd (patch)
tree43505a7c19af687b367549236c9d12778a263ff7 /libc/arch-arm/syscalls
parent7d624e9aff4c6addea7f2275fe58ff0815d95c70 (diff)
downloadbionic-d206b560e72e791b5dfeb339b5f7c18354bf95fd.zip
bionic-d206b560e72e791b5dfeb339b5f7c18354bf95fd.tar.gz
bionic-d206b560e72e791b5dfeb339b5f7c18354bf95fd.tar.bz2
libc: add swapon and swapoff syscalls
Change-Id: Ie79dc8e3f2ff1cd427dd6d95e3850920c4b407b0 Signed-off-by: Rom Lemarchand <romlem@google.com>
Diffstat (limited to 'libc/arch-arm/syscalls')
-rw-r--r--libc/arch-arm/syscalls/swapoff.S15
-rw-r--r--libc/arch-arm/syscalls/swapon.S15
2 files changed, 30 insertions, 0 deletions
diff --git a/libc/arch-arm/syscalls/swapoff.S b/libc/arch-arm/syscalls/swapoff.S
new file mode 100644
index 0000000..070d160
--- /dev/null
+++ b/libc/arch-arm/syscalls/swapoff.S
@@ -0,0 +1,15 @@
+/* autogenerated by gensyscalls.py */
+#include <asm/unistd.h>
+#include <linux/err.h>
+#include <machine/asm.h>
+
+ENTRY(swapoff)
+ mov ip, r7
+ ldr r7, =__NR_swapoff
+ swi #0
+ mov r7, ip
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
+END(swapoff)
diff --git a/libc/arch-arm/syscalls/swapon.S b/libc/arch-arm/syscalls/swapon.S
new file mode 100644
index 0000000..a77e0cd
--- /dev/null
+++ b/libc/arch-arm/syscalls/swapon.S
@@ -0,0 +1,15 @@
+/* autogenerated by gensyscalls.py */
+#include <asm/unistd.h>
+#include <linux/err.h>
+#include <machine/asm.h>
+
+ENTRY(swapon)
+ mov ip, r7
+ ldr r7, =__NR_swapon
+ swi #0
+ mov r7, ip
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
+END(swapon)