aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-08-12 12:34:40 +0200
committerAndrew Kelley <andrew@ziglang.org>2024-08-13 00:56:35 -0700
commite725d1e226071d1a2697a5635df01a8eadd64a8d (patch)
treec3ff8a9d09238632e397c86af17ca16d3275428d /lib/std
parentd0ae803a77ad6d0640f8f7973072fe6958d4439e (diff)
downloadzig-e725d1e226071d1a2697a5635df01a8eadd64a8d.tar.gz
zig-e725d1e226071d1a2697a5635df01a8eadd64a8d.zip
std.Thread: Fix freeAndExit() syscall numbers for mips64.
These just seem to have been copy/pasted from mips32.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/Thread.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index c4db7d6d9a..b84f0274bc 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -1149,11 +1149,11 @@ const LinuxThreadImpl = struct {
: "memory"
),
.mips64, .mips64el => asm volatile (
- \\ li $2, 4091 # SYS_munmap
+ \\ li $2, 5011 # SYS_munmap
\\ move $4, %[ptr]
\\ move $5, %[len]
\\ syscall
- \\ li $2, 4001 # SYS_exit
+ \\ li $2, 5058 # SYS_exit
\\ li $4, 0
\\ syscall
: