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 Jun 22, 2024
1 parent 7b413a8 commit 1096c55
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 1096c55

Please sign in to comment.