Help Request: calling BIOS interrupts from protected mode
Posted: Thu Feb 03, 2005 12:00 am
I need to know how to safely call BIOS software interrupts (like the video interrupt, int 0x10) from protected mode. I imagine this involves setting up an IDT, which I know how to do (I just don't know *what* to put in the IDT); it might also involve remapping some IRQs, which I don't know how to do.
I'm writing a toy kernel based on the template/stub kernel provided with the Grub documentation. So far I've only added a few instructions to boot.S to set up a GDT and reload the segment registers. The assembly is in gas (AT&T) syntax; the code probably won't help anyone answer my question, but it's on my website:
http://matt.ioioio.net/kernel/
Thanks in advance for the help.
I'm writing a toy kernel based on the template/stub kernel provided with the Grub documentation. So far I've only added a few instructions to boot.S to set up a GDT and reload the segment registers. The assembly is in gas (AT&T) syntax; the code probably won't help anyone answer my question, but it's on my website:
http://matt.ioioio.net/kernel/
Thanks in advance for the help.