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
Is it safe to put page map just after bss section?
Re: Is it safe to put page map just after bss section?
Hi, torshie.
It's safe. All of you code will place in code and data section. Don't worry about that!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?