aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:32:31 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:32:31 -0500
commitff3cf856120743c7386e8f6ab9f08e068886ce5c (patch)
tree046e07705b6a799c8f82b4f92ae1024771aaad64 /arch/x86/boot
parent39657b6546558469734eb960f7c0c9492111096f (diff)
x86: hlt on early crash
H. Peter Anvin <hpa@zytor.com> 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 <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/boot')
-rw-r--r--arch/x86/boot/compressed/misc_32.c3
-rw-r--r--arch/x86/boot/compressed/misc_64.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/boot/compressed/misc_32.c b/arch/x86/boot/compressed/misc_32.c
index 288e16283ef9..9103652058c4 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)
339 putstr(x); 339 putstr(x);
340 putstr("\n\n -- System halted"); 340 putstr("\n\n -- System halted");
341 341
342 while(1); /* Halt */ 342 while (1)
343 asm("hlt");
343} 344}
344 345
345asmlinkage void decompress_kernel(void *rmode, unsigned long end, 346asmlinkage 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 7d8338e21b00..8494f0dcff21 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)
338 putstr(x); 338 putstr(x);
339 putstr("\n\n -- System halted"); 339 putstr("\n\n -- System halted");
340 340
341 while(1); /* Halt */ 341 while (1)
342 asm("hlt");
342} 343}
343 344
344asmlinkage void decompress_kernel(void *rmode, unsigned long heap, 345asmlinkage void decompress_kernel(void *rmode, unsigned long heap,