Skip to content

Commit

Permalink
std.os.linux.tls: Support sparc32.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp authored and andrewrk committed Aug 12, 2024
1 parent 9ef16b3 commit f7fb261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/std/os/linux/tls.zig
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const current_variant: Variant = switch (native_arch) {
=> .I_modified,
.hexagon,
.s390x,
.sparc,
.sparc64,
.x86,
.x86_64,
Expand Down Expand Up @@ -309,7 +310,7 @@ pub fn setThreadPointer(addr: usize) void {
: "r0"
);
},
.sparc64 => {
.sparc, .sparc64 => {
asm volatile (
\\ mov %[addr], %%g7
:
Expand Down

0 comments on commit f7fb261

Please sign in to comment.