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=5f8480455a9e2172b15dfc7fb96480a68506c30d;hp=9f7be4ea787f4720247dbbc008ecce48ceaa5841;hpb=05abefc2a27a08f381bca41524a5d299c4839ff2;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 9f7be4ea..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 @@ -2,8 +2,6 @@ ; AcssMicro - System Calls ; ======================== -#include "../../../../Kernel/include/syscalls.h" - [bits 64] [section .text] @@ -58,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