Fiddling with x86_64 and i486 builds
[tpg/acess2.git] / Kernel / arch / x86_64 / include / arch.h
index c353089..78b2acc 100644 (file)
@@ -10,6 +10,9 @@
 #define KERNEL_BASE    0xFFFFFFFF##80000000
 #define BITS   64
 
+#define STACKED_LOCKS  0
+#define LOCK_DISABLE_INTS      1
+
 //#define INT_MAX      0x7FFFFFFF
 //#define UINT_MAX     0xFFFFFFFF
 
@@ -42,7 +45,7 @@ typedef char  BOOL;
 /**
  * \brief Halt the CPU
  */
-#define        HALT()  __asm__ __volatile__ ("hlt")
+#define        HALT()  __asm__ __volatile__ ("sti;\n\thlt")
 /**
  * \brief Fire a magic breakpoint (bochs)
  */

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