Op vrijdag 5 november 2010 01:29:52 schreef u:
On Mon, Nov 01, 2010 at 08:28:27PM +0100, Nils wrote:
Shouldn't there be a "while (1)" around the hlt instruction?
?? i don't know should it? The code seems to work, but if it is preferred/needed i will add it.
As far as I know the "hlt" instruction on x86 does not really terminally "halt" the processor, it can be woken up again by certain events (NMI, debug exceptions, whatever). So usually you only see the "hlt" instruction in a while(1) loop if you want the code to not ever continue execution after the "hlt" instruction. But someone please correct me if I'm wrong.
Uwe.
Ok thanks for the explanation. It sounds plausible. I copied it from the LX code. I will study this a bit more when i find some time and try to make a patch.
Thanks, Nils.