Skip to content

Commit

Permalink
x86: hlt on early crash
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 39657b6 commit ff3cf85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arch/x86/boot/compressed/misc_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion arch/x86/boot/compressed/misc_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ff3cf85

Please sign in to comment.