CLI/STI crash my kernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post 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.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post 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
junkoi
Member
Member
Posts: 63
Joined: Wed Jan 23, 2008 8:55 pm

Post 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.
Post Reply