From 683f8cca1eae1bb6d9330b822d7c3a4aea470e51 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 6 Apr 2011 05:38:44 -0700 Subject: [PATCH] add macro to simplify the using of th hlt instruction --- arch/x86/include/asm/processor.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index b79a4b60..9e44bf1d 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -145,10 +145,11 @@ static inline uint32_t read_eflags(void) uint32_t read_eip(void); -#define NOP1 asm volatile ("nop") -#define NOP2 asm volatile ("nop;nop") -#define NOP4 asm volatile ("nop;nop;nop;nop") -#define NOP8 asm volatile ("nop;nop;nop;nop;nop;nop;nop;nop") +#define NOP1 asm volatile ("nop") +#define NOP2 asm volatile ("nop;nop") +#define NOP4 asm volatile ("nop;nop;nop;nop") +#define NOP8 asm volatile ("nop;nop;nop;nop;nop;nop;nop;nop") +#define HALT asm volatile ("hlt"); inline static int system_init(void) {