mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
xtensa: print kernel sections info in mem_init
Output virtual addresses and sizes occupied by the main kernel sections: .text, .rodata, .data, .init and .bss. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
57358ba956
commit
fed566ca44
@ -110,7 +110,12 @@ void __init mem_init(void)
|
||||
" pkmap : 0x%08lx - 0x%08lx (%5lu kB)\n"
|
||||
" fixmap : 0x%08lx - 0x%08lx (%5lu kB)\n"
|
||||
#endif
|
||||
" lowmem : 0x%08lx - 0x%08lx (%5lu MB)\n",
|
||||
" lowmem : 0x%08lx - 0x%08lx (%5lu MB)\n"
|
||||
" .text : 0x%08lx - 0x%08lx (%5lu kB)\n"
|
||||
" .rodata : 0x%08lx - 0x%08lx (%5lu kB)\n"
|
||||
" .data : 0x%08lx - 0x%08lx (%5lu kB)\n"
|
||||
" .init : 0x%08lx - 0x%08lx (%5lu kB)\n"
|
||||
" .bss : 0x%08lx - 0x%08lx (%5lu kB)\n",
|
||||
#ifdef CONFIG_KASAN
|
||||
KASAN_SHADOW_START, KASAN_SHADOW_START + KASAN_SHADOW_SIZE,
|
||||
KASAN_SHADOW_SIZE >> 20,
|
||||
@ -129,7 +134,17 @@ void __init mem_init(void)
|
||||
#else
|
||||
min_low_pfn * PAGE_SIZE, max_low_pfn * PAGE_SIZE,
|
||||
#endif
|
||||
((max_low_pfn - min_low_pfn) * PAGE_SIZE) >> 20);
|
||||
((max_low_pfn - min_low_pfn) * PAGE_SIZE) >> 20,
|
||||
(unsigned long)_text, (unsigned long)_etext,
|
||||
(unsigned long)(_etext - _text) >> 10,
|
||||
(unsigned long)__start_rodata, (unsigned long)_sdata,
|
||||
(unsigned long)(_sdata - __start_rodata) >> 10,
|
||||
(unsigned long)_sdata, (unsigned long)_edata,
|
||||
(unsigned long)(_edata - _sdata) >> 10,
|
||||
(unsigned long)__init_begin, (unsigned long)__init_end,
|
||||
(unsigned long)(__init_end - __init_begin) >> 10,
|
||||
(unsigned long)__bss_start, (unsigned long)__bss_stop,
|
||||
(unsigned long)(__bss_stop - __bss_start) >> 10);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BLK_DEV_INITRD
|
||||
|
Loading…
Reference in New Issue
Block a user