diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-27 13:11:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-27 13:11:01 -0400 |
| commit | fbe9233aa7a84a1c382f35510e71f06d597e2a19 (patch) | |
| tree | c5373e65b70a3ec9ec4d4c3cdeeaed5ae70d9e4b /std | |
| parent | cf4e9a27c5a0f370197837312307f40bb1d6685f (diff) | |
| parent | 084724c689215fe3a647ceb9d8622faeb60da1ba (diff) | |
| download | zig-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.zig | 7 |
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"), } } |
