X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Fld-acess.so_src%2Farch%2Fx86_64.asm.h;h=b80e092ba2d2ec2df8d698668d22f91658be1fb5;hb=HEAD;hp=350585a0136f4e13493a9d8f44a2b15d37488052;hpb=51ab5f489bc356940c95cc936fd0508e8f07ea97;p=tpg%2Facess2.git 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 350585a0..b80e092b 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 @@ -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