Modules/VESA - Rework to handle boot-time modes (EGA text too)
[tpg/acess2.git] / KernelLand / Kernel / arch / x86 / include / arch.h
index 040e18b..1474269 100644 (file)
@@ -66,6 +66,8 @@ 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"); }
 
 // === TYPES ===
 typedef unsigned int   Uint;   // Unsigned machine native integer
@@ -78,7 +80,6 @@ typedef signed char           Sint8;
 typedef signed short   Sint16;
 typedef signed long            Sint32;
 typedef signed long long       Sint64;
-typedef Uint   size_t;
 typedef char   BOOL;
 
 typedef Uint32 tPAddr;

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