authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-12 12:34:40+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-13 00:56:35-07:00
loge725d1e226071d1a2697a5635df01a8eadd64a8d
treec3ff8a9d09238632e397c86af17ca16d3275428d
parentd0ae803a77ad6d0640f8f7973072fe6958d4439e

std.Thread: Fix freeAndExit() syscall numbers for mips64.

These just seem to have been copy/pasted from mips32.

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

lib/std/Thread.zig+2-2
...@@ -1149,11 +1149,11 @@ const LinuxThreadImpl = struct {...@@ -1149,11 +1149,11 @@ const LinuxThreadImpl = struct {
1149 : "memory"1149 : "memory"
1150 ),1150 ),
1151 .mips64, .mips64el => asm volatile (1151 .mips64, .mips64el => asm volatile (
1152 \\ li $2, 4091 # SYS_munmap1152 \\ li $2, 5011 # SYS_munmap
1153 \\ move $4, %[ptr]1153 \\ move $4, %[ptr]
1154 \\ move $5, %[len]1154 \\ move $5, %[len]
1155 \\ syscall1155 \\ syscall
1156 \\ li $2, 4001 # SYS_exit1156 \\ li $2, 5058 # SYS_exit
1157 \\ li $4, 01157 \\ li $4, 0
1158 \\ syscall1158 \\ syscall
1159 :1159 :