Skip to content

Commit

Permalink
std.Thread: Fix freeAndExit() syscall numbers for mips64.
Browse files Browse the repository at this point in the history
These just seem to have been copy/pasted from mips32.
  • Loading branch information
alexrp authored and andrewrk committed Aug 13, 2024
1 parent d0ae803 commit e725d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/Thread.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
:
Expand Down

0 comments on commit e725d1e

Please sign in to comment.