#if LOCK_DISABLE_INTS
int IF; //!< Interrupt state on call to SHORTLOCK
#endif
+ void *LockedBy;
};
// === MACROS ===
* \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
typedef signed short Sint16;
typedef signed long Sint32;
typedef signed long long Sint64;
-typedef Uint size_t;
typedef char BOOL;
typedef Uint32 tPAddr;