aboutsummaryrefslogtreecommitdiff
path: root/std/os/linux/arm64.zig
diff options
context:
space:
mode:
authorShawn Landden <shawn@git.icu>2018-09-08 03:14:30 +0000
committerShawn Landden <shawn@git.icu>2018-09-08 14:47:21 +0000
commit17cb69cebcb05bbc9d9f7cf01c41a97b71f8a499 (patch)
tree6ccd66f27a3e52a365aa33bb4c2d5abfc2ab9ce2 /std/os/linux/arm64.zig
parent7d6d1d1f607629625413d62c51b0c9f4c81cefe5 (diff)
downloadzig-17cb69cebcb05bbc9d9f7cf01c41a97b71f8a499.tar.gz
zig-17cb69cebcb05bbc9d9f7cf01c41a97b71f8a499.zip
fix elf auxv handling
Auxillery vectors are not guaranteed to be in any order, this just happens to work on x86_64.
Diffstat (limited to 'std/os/linux/arm64.zig')
-rw-r--r--std/os/linux/arm64.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/std/os/linux/arm64.zig b/std/os/linux/arm64.zig
index 9e99c196f5..95095bad4d 100644
--- a/std/os/linux/arm64.zig
+++ b/std/os/linux/arm64.zig
@@ -282,10 +282,8 @@ pub const SYS_io_pgetevents = 292;
pub const SYS_syscalls = 293;
pub const VDSO_USEFUL = true;
-pub const VDSO_CGT_SYM = "__vdso_clock_gettime";
-pub const VDSO_CGT_VER = "LINUX_2.6";
-pub const VDSO_GETCPU_SYM = "__vdso_getcpu";
-pub const VDSO_GETCPU_VER = "LINUX_2.6";
+pub const VDSO_CGT_SYM = "__kernel_clock_gettime";
+pub const VDSO_CGT_VER = "LINUX_2.6.39";
pub fn syscall0(number: usize) usize {
return asm volatile ("svc #0"