aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/special/bootstrap.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/std/special/bootstrap.zig b/std/special/bootstrap.zig
index 04b29d6709..064d8bac68 100644
--- a/std/special/bootstrap.zig
+++ b/std/special/bootstrap.zig
@@ -171,6 +171,13 @@ fn linuxSetThreadArea(addr: usize) void {
// acrh_prctl is documented to never fail
assert(rc == 0);
},
+ builtin.Arch.aarch64 => {
+ asm volatile (
+ \\ msr tpidr_el0,x0
+ \\ mov w0,#0
+ \\ ret
+ );
+ },
else => @compileError("Unsupported architecture"),
}
}