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 {...@@ -1215,13 +1215,13 @@ const LinuxThreadImpl = struct {
1215 \\ # is unmapped (it will result in a segfault), so we1215 \\ # is unmapped (it will result in a segfault), so we
1216 \\ # force-deactivate it by running `restore` until1216 \\ # force-deactivate it by running `restore` until
1217 \\ # all frames are cleared.1217 \\ # all frames are cleared.
1218 \\ 1:1218 \\ 1:
1219 \\ cmp %%fp, 01219 \\ cmp %%fp, 0
1220 \\ beq 2f1220 \\ beq 2f
1221 \\ nop1221 \\ nop
1222 \\ ba 1b1222 \\ ba 1b
1223 \\ restore1223 \\ restore
1224 \\ 2:1224 \\ 2:
1225 \\ mov 73, %%g1 # SYS_munmap1225 \\ mov 73, %%g1 # SYS_munmap
1226 \\ mov %[ptr], %%o01226 \\ mov %[ptr], %%o0
1227 \\ mov %[len], %%o11227 \\ mov %[len], %%o1
...@@ -1230,7 +1230,7 @@ const LinuxThreadImpl = struct {...@@ -1230,7 +1230,7 @@ const LinuxThreadImpl = struct {
1230 \\ flushw1230 \\ flushw
1231 \\ t 0x6d1231 \\ t 0x6d
1232 \\ mov 1, %%g1 # SYS_exit1232 \\ mov 1, %%g1 # SYS_exit
1233 \\ mov 1, %%o01233 \\ mov 0, %%o0
1234 \\ t 0x6d1234 \\ t 0x6d
1235 :1235 :
1236 : [ptr] "r" (@intFromPtr(self.mapped.ptr)),1236 : [ptr] "r" (@intFromPtr(self.mapped.ptr)),