Skip to content

Commit

Permalink
std.os.linux.tls: Handle riscv32 in setThreadPointer().
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jul 20, 2024
1 parent e9af581 commit c3dda88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/os/linux/tls.zig
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn setThreadPointer(addr: usize) void {
const rc = linux.syscall1(.set_tls, addr);
assert(rc == 0);
},
.riscv64 => {
.riscv32, .riscv64 => {
asm volatile (
\\ mv tp, %[addr]
:
Expand Down

0 comments on commit c3dda88

Please sign in to comment.