X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fm68knommu%2Fmm%2Finit.c;h=d79503fe6e42f4d81a4cf9331d7cba0e387191ec;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=e4c233eef195a37bdbf6672b53c848d2d6bf0191;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/m68knommu/mm/init.c b/arch/m68knommu/mm/init.c index e4c233eef..d79503fe6 100644 --- a/arch/m68knommu/mm/init.c +++ b/arch/m68knommu/mm/init.c @@ -15,6 +15,7 @@ * DEC/2000 -- linux 2.4 support */ +#include #include #include #include @@ -62,6 +63,8 @@ static unsigned long empty_bad_page; unsigned long empty_zero_page; +extern unsigned long rom_length; + void show_mem(void) { unsigned long i; @@ -175,9 +178,11 @@ void mem_init(void) initk = (&__init_begin - &__init_end) >> 10; tmp = nr_free_pages() << PAGE_SHIFT; - printk(KERN_INFO "Memory available: %luk/%luk RAM, (%dk kernel code, %dk data)\n", + printk(KERN_INFO "Memory available: %luk/%luk RAM, %luk/%luk ROM (%dk kernel code, %dk data)\n", tmp >> 10, len >> 10, + (rom_length > 0) ? ((rom_length >> 10) - codek) : 0, + rom_length >> 10, codek, datak );