summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/syscalls/swapon.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-arm/syscalls/swapon.S')
-rw-r--r--libc/arch-arm/syscalls/swapon.S15
1 files changed, 15 insertions, 0 deletions
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)