Add a "while (1)" function around the hlt instruction to assure the processor can't wake up from an interrupt.
Signed-off-by: Nils Jacobs njacobs8@hetnet.nl
This was suggested by Uwe Hermann. Thanks! I also included the same patch for Geode LX.
Nils.
Nils wrote:
__asm__ __volatile__("hlt\n");
while(1) {
__asm__ __volatile__("hlt\n");
}
Why not call die() instead? Is it too early for that?
//Peter
On 26.12.2010, at 06:19, Peter Stuge peter@stuge.se wrote:
Nils wrote:
__asm__ __volatile__("hlt\n");
while(1) {
__asm__ __volatile__("hlt\n");
}
Why not call die() instead? Is it too early for that?
Die() is now extra. It should work early.