Is it safe to put page map just after bss section?
Posted: Mon Aug 03, 2009 12:14 am
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
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