authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-18 02:03:22+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-19 08:38:05+02:00
log0f78f8244f3a8fd7a24200eb441287f6e6907d5b
tree4c0b5256403bc3c26d8568bf6e67976f9bbe46d3
parentd79e2822b062b98dff6bfd2c4549ec065d9e43d2

std.Thread: Use zero exit code in freeAndExit() for sparc64.


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

lib/std/Thread.zig+3-3
......@@ -1215,13 +1215,13 @@ const LinuxThreadImpl = struct {
12151215 \\ # is unmapped (it will result in a segfault), so we
12161216 \\ # force-deactivate it by running `restore` until
12171217 \\ # all frames are cleared.
1218 \\ 1:
1218 \\ 1:
12191219 \\ cmp %%fp, 0
12201220 \\ beq 2f
12211221 \\ nop
12221222 \\ ba 1b
12231223 \\ restore
1224 \\ 2:
1224 \\ 2:
12251225 \\ mov 73, %%g1 # SYS_munmap
12261226 \\ mov %[ptr], %%o0
12271227 \\ mov %[len], %%o1
......@@ -1230,7 +1230,7 @@ const LinuxThreadImpl = struct {
12301230 \\ flushw
12311231 \\ t 0x6d
12321232 \\ mov 1, %%g1 # SYS_exit
1233 \\ mov 1, %%o0
1233 \\ mov 0, %%o0
12341234 \\ t 0x6d
12351235 :
12361236 : [ptr] "r" (@intFromPtr(self.mapped.ptr)),