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/or1k/clone.s | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/thread/or1k/clone.s') diff --git a/src/thread/or1k/clone.s b/src/thread/or1k/clone.s index 2473ac20..9a84aeba 100644 --- a/src/thread/or1k/clone.s +++ b/src/thread/or1k/clone.s @@ -6,6 +6,8 @@ .hidden __clone .type __clone,@function __clone: + l.xori r11, r0, -4 + l.and r4, r4, r11 l.addi r4, r4, -8 l.sw 0(r4), r3 l.sw 4(r4), r6 -- cgit v1.2.1