Page 2 of 2

Posted: Sat Sep 01, 2007 12:12 pm
by frank
Exactly right! There may be an easier way to get it too do that but I never figured it out and that linker script works just fine for me.

Posted: Sat Sep 01, 2007 10:33 pm
by vhg119
frank wrote: Not True. I use a binary kernel. The first 4kb of my kernel is an assembly stub that sets up protected mode and paging and jumps to the rest of the kernel.
Frank,

Does that mean that your kernel is in two binaries? If so, I assume you load the 'initializer' portion into one page and the other part into another page?

Posted: Sat Sep 01, 2007 10:39 pm
by frank
vhg119 wrote:
frank wrote: Not True. I use a binary kernel. The first 4kb of my kernel is an assembly stub that sets up protected mode and paging and jumps to the rest of the kernel.
Frank,

Does that mean that your kernel is in two binaries? If so, I assume you load the 'initializer' portion into one page and the other part into another page?
Well no they are in the same binary and are linked together it's just that I page align my sections.

Posted: Sun Sep 02, 2007 2:52 am
by vhg119
I see. So you padded the space between the sections until your second section is on a new page? Then you used paging to map the second section to higher half?

This sounds like a more straightforward way to do the higher half kernel.