From bc3bec617cf8d28826d62001986d9ed397dfec00 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 dadf50e5ad53..636ad91b6345 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -1159,8 +1159,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