diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-18 02:03:22 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-19 08:38:05 +0200 |
| commit | 0f78f8244f3a8fd7a24200eb441287f6e6907d5b (patch) | |
| tree | 4c0b5256403bc3c26d8568bf6e67976f9bbe46d3 | |
| parent | d79e2822b062b98dff6bfd2c4549ec065d9e43d2 (diff) | |
| download | zig-0f78f8244f3a8fd7a24200eb441287f6e6907d5b.tar.gz zig-0f78f8244f3a8fd7a24200eb441287f6e6907d5b.zip | |
std.Thread: Use zero exit code in freeAndExit() for sparc64.
| -rw-r--r-- | lib/std/Thread.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index 12c22d69a8..323bf22384 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -1215,13 +1215,13 @@ const LinuxThreadImpl = struct { \\ # is unmapped (it will result in a segfault), so we \\ # force-deactivate it by running `restore` until \\ # all frames are cleared. - \\ 1: + \\ 1: \\ cmp %%fp, 0 \\ beq 2f \\ nop \\ ba 1b \\ restore - \\ 2: + \\ 2: \\ mov 73, %%g1 # SYS_munmap \\ mov %[ptr], %%o0 \\ mov %[len], %%o1 @@ -1230,7 +1230,7 @@ const LinuxThreadImpl = struct { \\ flushw \\ t 0x6d \\ mov 1, %%g1 # SYS_exit - \\ mov 1, %%o0 + \\ mov 0, %%o0 \\ t 0x6d : : [ptr] "r" (@intFromPtr(self.mapped.ptr)), |
