]> git.karo-electronics.de Git - karo-tx-linux.git/commit
m68k: print memory layout info in boot log
authorGreg Ungerer <gerg@uclinux.org>
Thu, 13 Oct 2011 06:59:55 +0000 (16:59 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Mon, 14 Nov 2011 05:36:26 +0000 (15:36 +1000)
commitdb79a6a8887a6b19818cffc2dd13f0b247b65344
treef9323aa9c91c906c37cabd81676a5720c1f59bf8
parent5037dca816f59cbaccfa533786efe398d5224f7b
m68k: print memory layout info in boot log

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:

Virtual kernel memory layout:
    vector  : 0x00000000 - 0x00000400   (   0 KiB)
    kmap    : 0xd0000000 - 0xe0000000   ( 256 MiB)
    vmalloc : 0xc0000000 - 0xcfffffff   ( 255 MiB)
    lowmem  : 0x00000000 - 0x02000000   (  32 MiB)
      .init : 0x00128000 - 0x00134000   (  48 KiB)
      .text : 0x00020000 - 0x00118d54   ( 996 KiB)
      .data : 0x00118d60 - 0x00126000   (  53 KiB)
      .bss  : 0x00134000 - 0x001413e0   (  53 KiB)

This has been very useful while debugging the ColdFire virtual memory
support code. But in general I think it is nice to know extacly where
the kernel has layed everything out on boot.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/traps.h
arch/m68k/kernel/vmlinux-std.lds
arch/m68k/kernel/vmlinux-sun3.lds
arch/m68k/mm/init_mm.c