From: John Hodge Date: Thu, 20 Oct 2011 04:01:46 +0000 (+0800) Subject: Usermode/ld-acess - Fixed error in x86_64 clone syscall X-Git-Tag: rel0.13~27 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5b4b4dad1c080fbde76dfa5c61a05dbd88dc0af4;p=tpg%2Facess2.git Usermode/ld-acess - Fixed error in x86_64 clone syscall --- diff --git a/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h b/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h index 62fc400a..6c3ac0f2 100644 --- a/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h +++ b/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h @@ -152,7 +152,7 @@ clone: push rbp mov rbp, rsp push rbx - push r11 + push r12 mov r12, rsi ; Save in a reg for after the clone @@ -177,6 +177,7 @@ clone: jz .ret mov rsp, rsi .ret: + pop r12 pop rbx pop rbp ret