Kernel/x86 - Structure for watchpoints (not used)
[tpg/acess2.git] / KernelLand / Kernel / arch / x86 / include / arch.h
index 6586845..feb25f4 100644 (file)
@@ -66,6 +66,10 @@ struct sShortSpinlock {
  * \brief Fire a magic breakpoint (bochs)
  */
 #define        MAGIC_BREAK()   __asm__ __volatile__ ("xchg %bx, %bx")
+// TODO: SMP halt request too
+#define HALT_CPU()     for(;;) { __asm__ __volatile__ ("cli; hlt"); }
+
+#define ASM(v...)      __asm__ __volatile__ (v)
 
 // === TYPES ===
 typedef unsigned int   Uint;   // Unsigned machine native integer

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