Commit 95674fca0c

Alex Rønne Petersen <alex@alexrp.com>
2024-10-16 01:06:27
std.Thread: Use loongarch freeAndExit() implementation for loongarch32 too.
1 parent 1cdb143
Changed files (1)
lib
lib/std/Thread.zig
@@ -1338,7 +1338,7 @@ const LinuxThreadImpl = struct {
                       [len] "r" (self.mapped.len),
                     : "memory"
                 ),
-                .loongarch64 => asm volatile (
+                .loongarch32, .loongarch64 => asm volatile (
                     \\ or      $a0, $zero, %[ptr]
                     \\ or      $a1, $zero, %[len]
                     \\ ori     $a7, $zero, 215     # SYS_munmap