summaryrefslogtreecommitdiff
path: root/src/thread/aarch64/clone.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/aarch64/clone.s')
-rw-r--r--src/thread/aarch64/clone.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread/aarch64/clone.s b/src/thread/aarch64/clone.s
index e3c83395..9ac272bd 100644
--- a/src/thread/aarch64/clone.s
+++ b/src/thread/aarch64/clone.s
@@ -24,7 +24,8 @@ __clone:
// parent
ret
// child
-1: ldp x1,x0,[sp],#16
+1: mov fp, 0
+ ldp x1,x0,[sp],#16
blr x1
mov x8,#93 // SYS_exit
svc #0