aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/start.zig')
-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"),