Grub Boot Loader
Grub Boot Loader
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
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?
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
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.
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
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
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...
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
Most likely nothing, but it really just depends on your OS.I want to know what I might be faced with in future if I do not use grub.
K.J.
Re:Grub Boot Loader
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.
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.