aarch64: clone: Fix incorrect stack offset in clone_ret

This commit is contained in:
Robin Randhawa
2021-01-17 10:03:50 +00:00
parent 208fb681f4
commit 3585f620b0

View File

@@ -266,6 +266,7 @@ pub struct SyscallStack {
#[naked]
pub unsafe extern fn clone_ret() {
llvm_asm!("ldp x29, x30, [sp], #16");
llvm_asm!("add sp, sp, #16");
llvm_asm!("mov x0, 0");
}