GRUB...

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

GRUB...

Post by Asphyxia »

When GRUB finally loads a kernel, I found put that the CPU is using already using 32-bit flat addressing and all segment registers start at 0 and have limits of 4GB - 1. I also was able to find out that paging is not enabled. Right now I'm wondering what mode the CPU is in once control is passed over to the kernel. I could check the PE register but right now I'm at work and wont be able to get back to my dev system until Wednesday evening... Thanks
carbonBased

RE:GRUB...

Post by carbonBased »

32-bit protected mode
You should reload the GDT, however... use your own.
And the IDT isn't defined at all, so you'll have to do that as well.

Cheers,
Jeff
Asphyxia

RE:GRUB...

Post by Asphyxia »

Thanks cB
Gnome

RE:GRUB...

Post by Gnome »

The machine state when booted by a Multiboot bootloader (such as GRUB) is specified here:
http://www.mcc.ac.uk/Documentation/grub ... html#SEC16

Gnome
Post Reply