Re: [PATCH] m68k: print memory layout info in boot log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 21, 2011 at 09:07,  <gerg@xxxxxxxxxxxx> wrote:
Output a table of the kernel memory regions at boot time.
This is taken directly from the ARM architecture code that does this.
The table looks like this:

arch/m68k/mm/init_mm.c: In function ‘print_memmap’:
arch/m68k/mm/init_mm.c:108: error: ‘_sbss’ undeclared (first use in
this function)
arch/m68k/mm/init_mm.c:108: error: (Each undeclared identifier is
reported only once
arch/m68k/mm/init_mm.c:108: error: for each function it appears in.)
arch/m68k/mm/init_mm.c:108: error: ‘_ebss’ undeclared (first use in
this function)

+       printk(KERN_NOTICE "Virtual kernel memory layout:\n"

pr_notice

+               "    vector  : 0x%08lx - 0x%08lx   (%4ld kB)\n"
+               "    kmap    : 0x%08lx - 0x%08lx   (%4ld MB)\n"
+               "    vmalloc : 0x%08lx - 0x%08lx   (%4ld MB)\n"
+               "    lowmem  : 0x%08lx - 0x%08lx   (%4ld MB)\n"
+               "      .init : 0x%p" " - 0x%p" "   (%4d kB)\n"
+               "      .text : 0x%p" " - 0x%p" "   (%4d kB)\n"
+               "      .data : 0x%p" " - 0x%p" "   (%4d kB)\n"
+               "      .bss  : 0x%p" " - 0x%p" "   (%4d kB)\n",

KiB, MiB?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux