Usermode/ld-acess - Fixed error in x86_64 clone syscall
authorJohn Hodge <[email protected]>
Thu, 20 Oct 2011 04:01:46 +0000 (12:01 +0800)
committerJohn Hodge <[email protected]>
Thu, 20 Oct 2011 04:01:46 +0000 (12:01 +0800)
Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h

index 62fc400..6c3ac0f 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au