Page 1 of 1

GRUB...

Posted: Sun Feb 01, 2004 12:00 am
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

RE:GRUB...

Posted: Sun Feb 01, 2004 12:00 am
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

RE:GRUB...

Posted: Sun Feb 01, 2004 12:00 am
by Asphyxia
Thanks cB

RE:GRUB...

Posted: Mon Feb 02, 2004 12:00 am
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