aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorJacob G-W <jacoblevgw@gmail.com>2021-07-10 20:56:30 -0400
committerAndrew Kelley <andrew@ziglang.org>2021-07-11 01:58:26 -0400
commit968d1ecf17c0a0774d43965332d00d4ad39743b9 (patch)
treeb76eadf8b7d8c27fbff9ed1c48efdd218659854d /lib/std
parent40764650afd47f2ca2d191ed4d910f680702e014 (diff)
downloadzig-968d1ecf17c0a0774d43965332d00d4ad39743b9.tar.gz
zig-968d1ecf17c0a0774d43965332d00d4ad39743b9.zip
stage2 plan9: add aarch64 support
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/start.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index dbbab433d0..1a290a90db 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -135,6 +135,15 @@ fn exit2(code: usize) noreturn {
: "rcx", "r11", "memory"
);
},
+ // TODO once we get stack setting with assembly on
+ // arm, exit with 0 instead of stack garbage
+ .aarch64 => {
+ asm volatile ("svc #0"
+ :
+ : [exit] "{x0}" (0x08)
+ : "memory", "cc"
+ );
+ },
else => @compileError("TODO"),
},
else => @compileError("TODO"),