Page 2 of 2

Posted: Thu Jan 31, 2008 4:29 am
by pcmattman
junkoi wrote:Is it true??? I tried to execute Int10h, and it works without having to enable interrupts (STI) at all.
If my memory serves me right it's only the hardware interrupts that are affected by the IF.

Posted: Thu Jan 31, 2008 4:34 am
by AJ
:oops: OK - I'll try to remember things correctly next time!

Out of interest (just thinking of other gotcha's), I suppose that a BIOS int for accessing e.g. a storage device may execute an STI itself (hence needing the VIF in v86 mode) - that may be worth watching out for.

Cheers,
Adam

Posted: Thu Jan 31, 2008 8:17 pm
by junkoi
I tried my kernel on the real machine (not QEMU), and it crashes!

So I guess that is a good idea to setup IDT. Will try that to see if the problem is gone, and report back here.

Thanks.