mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std.os.linux.tls: Support sparc32.
This commit is contained in:
parent
9ef16b36ce
commit
f7fb261efd
@ -88,6 +88,7 @@ const current_variant: Variant = switch (native_arch) {
|
||||
=> .I_modified,
|
||||
.hexagon,
|
||||
.s390x,
|
||||
.sparc,
|
||||
.sparc64,
|
||||
.x86,
|
||||
.x86_64,
|
||||
@ -309,7 +310,7 @@ pub fn setThreadPointer(addr: usize) void {
|
||||
: "r0"
|
||||
);
|
||||
},
|
||||
.sparc64 => {
|
||||
.sparc, .sparc64 => {
|
||||
asm volatile (
|
||||
\\ mov %[addr], %%g7
|
||||
:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user