mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
std.Thread: Fix freeAndExit() assembly for powerpc.
Wrong source/destination register order.
This commit is contained in:
parent
b00f586c3d
commit
d0ae803a77
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user