Page 1 of 1

Is it safe to put page map just after bss section?

Posted: Mon Aug 03, 2009 12:14 am
by torshie
Physical memory layout of my kernel is like this:
0 - 1M: unused
1M - 1.5M: kernel stack
1.5M - 4M: code & data section
4M - $bssEnd: BSS section. $bssEnd is from ld script, $bssEnd is 4k aligned.
$bssEnd - xxx: page map.

Is it safe to put page map there? Will the code generated by G++ put anything, for example: local static objects, after the BSS section at runtime?

btw: my kernel runs in 64-bit mode

Re: Is it safe to put page map just after bss section?

Posted: Mon Aug 03, 2009 12:46 am
by kop99
Hi, torshie.
Is it safe to put page map there? Will the code generated by G++ put anything, for example: local static objects, after the BSS section at runtime?
It's safe. All of you code will place in code and data section. Don't worry about that!