Pages at 0x0 with higher half kernel
Posted: Thu Mar 19, 2009 3:10 pm
Hello everyone,
I just got the higher half kernel with the GDT trick from the Wiki to work.
I understand the process of setting up the different GDTs, setting up paging etc. but one thing confuses me:
The first physical 4 MB are mapped to 0xC0000000 where all my code refers to due to the linker script. Allright.
But why are these 4MB also mapped to 0x0?
And do I need these pages or can I safely remove them from the page directory?
I want to use the full space from 0x0 to 0xC0000000 for my later userspace programs. Or is this a bad idea?
Thanks in advance,
Andreas
I just got the higher half kernel with the GDT trick from the Wiki to work.
I understand the process of setting up the different GDTs, setting up paging etc. but one thing confuses me:
The first physical 4 MB are mapped to 0xC0000000 where all my code refers to due to the linker script. Allright.
But why are these 4MB also mapped to 0x0?
And do I need these pages or can I safely remove them from the page directory?
I want to use the full space from 0x0 to 0xC0000000 for my later userspace programs. Or is this a bad idea?
Thanks in advance,
Andreas