summaryrefslogtreecommitdiff
path: root/src/thread/loongarch64/clone.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/loongarch64/clone.s')
-rw-r--r--src/thread/loongarch64/clone.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread/loongarch64/clone.s b/src/thread/loongarch64/clone.s
index a165b365..cb4aacfc 100644
--- a/src/thread/loongarch64/clone.s
+++ b/src/thread/loongarch64/clone.s
@@ -22,6 +22,7 @@ __clone:
beqz $a0, 1f # whether child process
jirl $zero, $ra, 0 # parent process return
1:
+ move $fp, $zero
ld.d $t8, $sp, 0 # function pointer
ld.d $a0, $sp, 8 # argument pointer
jirl $ra, $t8, 0 # call the user's function