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.