std.Thread: Fix freeAndExit() assembly for powerpc.

Wrong source/destination register order.
This commit is contained in:
Alex Rønne Petersen 2024-08-12 12:36:38 +02:00 committed by Andrew Kelley
parent b00f586c3d
commit d0ae803a77

View File

@ -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