I belive i will use grub as a bootloader for the beggining stages of my OS. My question is, What all dose grub do? Such as, switch to Pmode? load IDT, GDT, LDT? enable a20? stuff like that.
Thanks,
Spam
GRUBing
Re:GRUBing
GRUB switches to Protected Mode, therefore enables A20. It builds a GDT temporarily, but you will have to load your own, nevertheless. It builds no IDT and interrupts are disabled...
See http://www.openbg.net/sto/os/xml/grub.html#grub2krnl
See http://www.openbg.net/sto/os/xml/grub.html#grub2krnl