summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm64/syscalls/__reboot.S
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-01-21 19:50:58 -0800
committerColin Cross <ccross@android.com>2014-01-23 18:35:39 -0800
commitd1973ca51325393f304e82a4d79874f33e54ac16 (patch)
tree75a657d895a41aa4855a06ef1e0e986c963e0eef /libc/arch-arm64/syscalls/__reboot.S
parent5b4884fac90753c68d401de73036c2de919958eb (diff)
downloadbionic-d1973ca51325393f304e82a4d79874f33e54ac16.zip
bionic-d1973ca51325393f304e82a4d79874f33e54ac16.tar.gz
bionic-d1973ca51325393f304e82a4d79874f33e54ac16.tar.bz2
bionic: rename aarch64 target to arm64
Rename aarch64 build targets to arm64. The gcc toolchain is still aarch64. Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3
Diffstat (limited to 'libc/arch-arm64/syscalls/__reboot.S')
-rw-r--r--libc/arch-arm64/syscalls/__reboot.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/arch-arm64/syscalls/__reboot.S b/libc/arch-arm64/syscalls/__reboot.S
new file mode 100644
index 0000000..9680bdc
--- /dev/null
+++ b/libc/arch-arm64/syscalls/__reboot.S
@@ -0,0 +1,22 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(__reboot)
+ stp x29, x30, [sp, #-16]!
+ mov x29, sp
+ str x8, [sp, #-16]!
+
+ mov x8, __NR_reboot
+ svc #0
+
+ ldr x8, [sp], #16
+ ldp x29, x30, [sp], #16
+
+ cmn x0, #(MAX_ERRNO + 1)
+ cneg x0, x0, hi
+ b.hi __set_errno
+
+ ret
+END(__reboot)
+.hidden _C_LABEL(__reboot)