Upper half kernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post 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.
vhg119
Member
Member
Posts: 71
Joined: Fri Aug 24, 2007 5:56 pm
Location: CA, USA

Post 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?
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post 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.
vhg119
Member
Member
Posts: 71
Joined: Fri Aug 24, 2007 5:56 pm
Location: CA, USA

Post 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.
Post Reply