authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 16:30:33+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 17:53:04+02:00
log8217f26ef8ddab9eb02a9d380d6509c39ac2d0f3
treeb073c1405bd96db3d3ef7f713b3e02396bb7c412
parent52b8d3421e347871ffe16cbda30141183fd5e624
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux.tls: fix a typo and a mistake in hppa setThreadPointer assembly

* addr is an input, not an output. * ble clobbers r31, not r29.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/os/linux/tls.zig+2-2
......@@ -296,8 +296,8 @@ pub fn setThreadPointer(addr: usize) void {
296296 \\ ble 0xe0(%%sr2, %%r0)
297297 \\ nop
298298 :
299 : [addr] "={r26}" (addr),
300 : .{ .r29 = true });
299 : [addr] "{r26}" (addr),
300 : .{ .r31 = true });
301301 },
302302 .loongarch32, .loongarch64 => {
303303 asm volatile (