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 (
|
.powerpc, .powerpcle, .powerpc64, .powerpc64le => asm volatile (
|
||||||
\\ li 0, 91 # SYS_munmap
|
\\ li 0, 91 # SYS_munmap
|
||||||
\\ mr %[ptr], 3
|
\\ mr 3, %[ptr]
|
||||||
\\ mr %[len], 4
|
\\ mr 4, %[len]
|
||||||
\\ sc
|
\\ sc
|
||||||
\\ li 0, 1 # SYS_exit
|
\\ li 0, 1 # SYS_exit
|
||||||
\\ li 3, 0
|
\\ li 3, 0
|
||||||
|
Loading…
Reference in New Issue
Block a user