X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Farch%2Fx86%2Finclude%2Farch.h;h=147426950aeae613145378d5f98b417d4709896e;hb=e2744a459d1c63435d7348d0bfd0e4b92b0ec9f9;hp=658684528f161acd0498e0863ca4521d3667283f;hpb=479d0634670b58da044bc58149662adba0ad1d0b;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/arch/x86/include/arch.h b/KernelLand/Kernel/arch/x86/include/arch.h index 65868452..14742695 100644 --- a/KernelLand/Kernel/arch/x86/include/arch.h +++ b/KernelLand/Kernel/arch/x86/include/arch.h @@ -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