aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-27 13:11:01 -0400
committerGitHub <noreply@github.com>2019-03-27 13:11:01 -0400
commitfbe9233aa7a84a1c382f35510e71f06d597e2a19 (patch)
treec5373e65b70a3ec9ec4d4c3cdeeaed5ae70d9e4b /std
parentcf4e9a27c5a0f370197837312307f40bb1d6685f (diff)
parent084724c689215fe3a647ceb9d8622faeb60da1ba (diff)
downloadzig-fbe9233aa7a84a1c382f35510e71f06d597e2a19.tar.gz
zig-fbe9233aa7a84a1c382f35510e71f06d597e2a19.zip
Merge pull request #2107 from shawnl/arm64
fix build on arm64
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"),
}
}