From 5e03c03fcde3534b37a0b995a438cd176d6882d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 8 Feb 2025 05:39:59 +0100 Subject: clone: align the given stack pointer on or1k and riscv This was an oversight specific to these archs; others have always aligned the new stack pointer correctly. --- src/thread/riscv64/clone.s | 1 + 1 file changed, 1 insertion(+) (limited to 'src/thread/riscv64/clone.s') diff --git a/src/thread/riscv64/clone.s b/src/thread/riscv64/clone.s index db908248..0e6f41a8 100644 --- a/src/thread/riscv64/clone.s +++ b/src/thread/riscv64/clone.s @@ -8,6 +8,7 @@ .type __clone, %function __clone: # Save func and arg to stack + andi a1, a1, -16 addi a1, a1, -16 sd a0, 0(a1) sd a3, 8(a1) -- cgit v1.2.1