summaryrefslogtreecommitdiff
path: root/src/thread/riscv64/clone.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/riscv64/clone.s')
-rw-r--r--src/thread/riscv64/clone.s1
1 files changed, 1 insertions, 0 deletions
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)