Re: [LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-12 Thread Uwe Hermann
On Thu, Jul 12, 2007 at 04:27:46AM +0200, Peter Stuge wrote: On Thu, Jul 12, 2007 at 03:44:23AM +0200, Uwe Hermann wrote: Btw, why does die() do an endless loop around hlt()? Is there a reason a hlt() will _not_ immediately halt the CPU? Can that happen? It should halt, but the CPU may

Re: [LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-12 Thread Stefan Reinauer
* Uwe Hermann [EMAIL PROTECTED] [070712 15:06]: Hm, but given your above explanations that the hlt() may not really completely halt, I'd say that we really should move the loop into hlt(). When I call hlt() from my code I _expect_ a full halt, I don't want _any_ other code exectuted. It's

Re: [LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-12 Thread Juergen Beisert
On Thursday 12 July 2007 15:23, Stefan Reinauer wrote: * Uwe Hermann [EMAIL PROTECTED] [070712 15:06]: Hm, but given your above explanations that the hlt() may not really completely halt, I'd say that we really should move the loop into hlt(). When I call hlt() from my code I _expect_ a

Re: [LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-12 Thread Stefan Reinauer
* Juergen Beisert [EMAIL PROTECTED] [070712 15:57]: When no interrupt, reset, NMI or SMI occures the hlt opcode let the CPU sleep forever. Do we are using interrupts in LBv3? I guess we can not guarantee that there is no NMI. -- coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.

Re: [LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-12 Thread Peter Stuge
On Thu, Jul 12, 2007 at 03:06:57PM +0200, Uwe Hermann wrote: If so, shall we move the loop into hlt() itself? I don't think so. hlt() is just a C wrapper around the instruction. Hm, but given your above explanations that the hlt() may not really completely halt, I'd say that we really

Re: [LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-12 Thread Uwe Hermann
On Thu, Jul 12, 2007 at 05:47:16PM +0200, Peter Stuge wrote: Until we've looked into it further I think looping in die() is good. Yes, thanks for the clarifications. Eventually I imagine building a panic room into die() so that Yep, surely a nice idea (should be a Kconfig option,

[LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-11 Thread Uwe Hermann
See patch. Having an extra file just for the tiny hlt() is really not required. Btw, why does die() do an endless loop around hlt()? Is there a reason a hlt() will _not_ immediately halt the CPU? Can that happen? If so, shall we move the loop into hlt() itself? Uwe. --

Re: [LinuxBIOS] [PATCH][v3] Merge hlt() into cpu.h (svn resync)

2007-07-11 Thread Peter Stuge
On Thu, Jul 12, 2007 at 03:44:23AM +0200, Uwe Hermann wrote: Btw, why does die() do an endless loop around hlt()? Is there a reason a hlt() will _not_ immediately halt the CPU? Can that happen? It should halt, but the CPU may wake up again and continue executing if an interrupt arrives. All