Working on separating architecture dependent and independent stuff,
[tpg/acess2.git] / Kernel / arch / x86_64 / include / arch.h
index e076b08..22c551f 100644 (file)
@@ -35,12 +35,13 @@ typedef volatile int    tSpinlock;
 #define IS_LOCKED(lockptr)      (!!(*(tSpinlock*)lockptr))
 #define LOCK(lockptr)   do {int v=1;\
        while(v)\
-       __asm__ __volatile__("lock xchgl %%eax, (%%edi)":"=a"(v):"a"(1),"D"(lockptr));\
+       __asm__ __volatile__("lock xchgl %%eax, (%%rdi)":"=a"(v):"a"(1),"D"(lockptr));\
        }while(0)
-#define RELEASE(lockptr)       __asm__ __volatile__("lock andl $0, (%%edi)"::"D"(lockptr));
+#define RELEASE(lockptr)       __asm__ __volatile__("lock andl $0, (%%rdi)"::"D"(lockptr));
 #define HALT()  __asm__ __volatile__ ("hlt")
 
 // Systemcall Registers
+// TODO: Fix this structure
 typedef struct sSyscallRegs
 {
        Uint    Arg4, Arg5;     // RDI, RSI

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