From d0ae803a77ad6d0640f8f7973072fe6958d4439e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 12 Aug 2024 12:36:38 +0200 Subject: [PATCH] std.Thread: Fix freeAndExit() assembly for powerpc. Wrong source/destination register order. --- lib/std/Thread.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index 8bd3cd7296..c4db7d6d9a 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -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