]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/32: Display modules range in virtual memory layout
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 11 Jun 2021 19:08:54 +0000 (19:08 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:11 +0000 (00:09 +1000)
book3s/32 and 8xx don't use vmalloc for modules.

Print the modules area at startup as part of the virtual memory layout:

[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xffafc000..0xffffc000  : fixmap
[    0.000000]   * 0xc9000000..0xffafc000  : vmalloc & ioremap
[    0.000000]   * 0xb0000000..0xc0000000  : modules
[    0.000000] Memory: 118480K/131072K available (7152K kernel code, 2320K rwdata, 1328K rodata, 368K init, 854K bss, 12592K reserved, 0K cma-reserved)

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/98394503e92d6fd6d8f657e0b263b32f21cf2790.1623438478.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/mem.c

index 77fce7aa7dc55142f3b7cb419a30e924e1e1f973..c3b4fdda70692cef34a94b050b559f2d1c712f52 100644 (file)
@@ -302,6 +302,10 @@ void __init mem_init(void)
                        ioremap_bot, IOREMAP_TOP);
        pr_info("  * 0x%08lx..0x%08lx  : vmalloc & ioremap\n",
                VMALLOC_START, VMALLOC_END);
+#ifdef MODULES_VADDR
+       pr_info("  * 0x%08lx..0x%08lx  : modules\n",
+               MODULES_VADDR, MODULES_END);
+#endif
 #endif /* CONFIG_PPC32 */
 }