Usermode/ld-acess - Fix x86_64 not saving RBP on no-arg syscalls
authorJohn Hodge <[email protected]>
Sat, 17 May 2014 12:15:06 +0000 (20:15 +0800)
committerJohn Hodge <[email protected]>
Sat, 17 May 2014 12:15:06 +0000 (20:15 +0800)
Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h

index 350585a..b80e092 100644 (file)
@@ -56,9 +56,11 @@ _errno:      dw      0       ; Placed in .text, to allow use of relative addressing
 [global %1:func]
 %1:
        push rbx
+       push rbp
        mov eax, %2
        SYSCALL_OP
        mov [DWORD rel _errno], ebx
+       pop rbp
        pop rbx
        ret
 %endmacro

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