Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff3cf856 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 39657b65
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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,
+2 −1
Original line number Diff line number Diff line
@@ -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,