From: Ingo Molnar Date: Wed, 30 Jan 2008 12:32:31 +0000 (+0100) Subject: x86: hlt on early crash X-Git-Tag: v2.6.25-rc1~1143^2~444 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ff3cf856120743c7386e8f6ab9f08e068886ce5c;p=linux-2.6-omap-h63xx.git x86: hlt on early crash H. Peter Anvin wrote: > It probably should actually HLT, to avoid sucking power, and stressing > the thermal system. We're dead at this point, and the early 486's > which had problems with HLT will lock up - we don't care. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/boot/compressed/misc_32.c b/arch/x86/boot/compressed/misc_32.c index 288e16283ef..9103652058c 100644 --- a/arch/x86/boot/compressed/misc_32.c +++ b/arch/x86/boot/compressed/misc_32.c @@ -339,7 +339,8 @@ static void error(char *x) putstr(x); putstr("\n\n -- System halted"); - while(1); /* Halt */ + while (1) + asm("hlt"); } asmlinkage void decompress_kernel(void *rmode, unsigned long end, diff --git a/arch/x86/boot/compressed/misc_64.c b/arch/x86/boot/compressed/misc_64.c index 7d8338e21b0..8494f0dcff2 100644 --- a/arch/x86/boot/compressed/misc_64.c +++ b/arch/x86/boot/compressed/misc_64.c @@ -338,7 +338,8 @@ static void error(char *x) putstr(x); putstr("\n\n -- System halted"); - while(1); /* Halt */ + while (1) + asm("hlt"); } asmlinkage void decompress_kernel(void *rmode, unsigned long heap,