Page 1 of 1

Grub Boot Loader

Posted: Mon Dec 23, 2002 7:17 am
by Guest

when grub hand conrol over to ur kernel, is it in real mode or protected mode?
I means does grub switch to protected mode or is dat left for us to do?

Re:Grub Boot Loader

Posted: Mon Dec 23, 2002 7:29 am
by Slasher
change the COLOR OF YOUR POST!!!! HURTS THE EYES!!! >:(

Re:Grub Boot Loader

Posted: Mon Dec 23, 2002 7:36 am
by Guest
Below is da above with a change of color:

when grub hand conrol over to ur kernel, is it in real mode or protected mode?
I means does grub switch to protected mode or is dat left for us to do?

Re:Grub Boot Loader

Posted: Mon Dec 23, 2002 8:07 am
by DarylD
Dis is a question dat I know de answer for.

Why do people write like that????

When grub switches to your kernel, it is in protected mode with all segment registers set to 4GB flat, but you will still need to create your own GDT and reload the selectors.

Re:Grub Boot Loader

Posted: Mon Dec 23, 2002 9:33 am
by Whatever5k
DaryID is right, you are in Protected Mode, but the GDT is only set up temporarily, so you'll have to build your own one and load it with lgdt.

Re:Grub Boot Loader

Posted: Mon Dec 23, 2002 3:28 pm
by Ozguxxx
Hi people I am sorry to mess this thread up but question is related to it. ;D
I want to know what I might be faced with in future if I do not use grub. I mean currently I am using a bootlader that I wrote from very scratch and it's not talented, in fact it is very poor I think. Anyway... I want to take your ideas on what difficulties I might be faced with. Thanx...

Re:Grub Boot Loader

Posted: Mon Dec 23, 2002 6:26 pm
by K.J.
I want to know what I might be faced with in future if I do not use grub.
Most likely nothing, but it really just depends on your OS.

K.J.

Re:Grub Boot Loader

Posted: Tue Dec 24, 2002 4:30 am
by DarylD
Grub just makes life easy. As follows:

1. It makes the switch to protected mode
2. Will boot of floppy or hard drive
3. Will use whatever bios functions it needs to give you a memory map
4. Will load modules
5. It gives a pretty boot screen!
6. Makes life easy, did I already say that?!!!

If you want in the future, its would be possible to write your own bootloader that performs al these functions and get rid of grub, thats your choice.