Skip to content

Commit 8e91c22

Browse files
yxd-ymalexrp
andauthored
loongarch: fix asm to set thread pointer (#21086)
Co-authored-by: Alex Rønne Petersen <[email protected]>
1 parent 5d080e2 commit 8e91c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/os/linux/tls.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub fn setThreadPointer(addr: usize) void {
269269
},
270270
.loongarch32, .loongarch64 => {
271271
asm volatile (
272-
\\ mv tp, %[addr]
272+
\\ move $tp, %[addr]
273273
:
274274
: [addr] "r" (addr),
275275
);

0 commit comments

Comments
 (0)