Skip to content

Commit

Permalink
std.Thread: Fix freeAndExit() assembly for powerpc.
Browse files Browse the repository at this point in the history
Wrong source/destination register order.
  • Loading branch information
alexrp authored and andrewrk committed Aug 13, 2024
1 parent b00f586 commit d0ae803
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 @@ -1163,8 +1163,8 @@ const LinuxThreadImpl = struct {
),
.powerpc, .powerpcle, .powerpc64, .powerpc64le => asm volatile (
\\ li 0, 91 # SYS_munmap
\\ mr %[ptr], 3
\\ mr %[len], 4
\\ mr 3, %[ptr]
\\ mr 4, %[len]
\\ sc
\\ li 0, 1 # SYS_exit
\\ li 3, 0
Expand Down

0 comments on commit d0ae803

Please sign in to comment.