Page 1 of 1

About the GDT in the kernel...

Posted: Tue May 10, 2011 11:39 pm
by Sir Assembler
Why do we need to setup the GDT in the kernel if you already did it in the bootloader?

Re: About the GDT in the kernel...

Posted: Wed May 11, 2011 3:52 am
by Mike
Hello,

Technically it is not needed, however it is done for the following reasons:

-reduce dependency between kernel and a specific bootloader;
-allows the kernel developer to easily modify the GDT during runtime. This is important as it allows the kernel to setup the GDT depending on system needs or configuration.