patch-2.4.22 linux-2.4.22/arch/sh/mm/init.c
Next file: linux-2.4.22/arch/sh/overdrive/Makefile
Previous file: linux-2.4.22/arch/sh/mm/fault.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/sh/mm/init.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.21/arch/sh/mm/init.c linux-2.4.22/arch/sh/mm/init.c
@@ -1,4 +1,4 @@
-/* $Id: init.c,v 1.19 2001/10/01 02:21:50 gniibe Exp $
+/* $Id: init.c,v 1.1.1.1.2.2 2003/07/07 11:23:21 trent Exp $
*
* linux/arch/sh/mm/init.c
*
@@ -139,7 +139,7 @@
void __init mem_init(void)
{
extern unsigned long empty_zero_page[1024];
- int codesize, reservedpages, datasize, initsize;
+ int codesize, reservedpages, datasize, bsssize, initsize, pagemapsize;
int tmp;
max_mapnr = num_physpages = MAX_LOW_PFN - START_PFN;
@@ -163,15 +163,19 @@
reservedpages++;
codesize = (unsigned long) &_etext - (unsigned long) &_text;
datasize = (unsigned long) &_edata - (unsigned long) &_etext;
+ bsssize = (unsigned long) &_end - (unsigned long) &__bss_start;
initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;
+ pagemapsize = (max_mapnr + 1)*sizeof(struct page);
- printk("Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init)\n",
- (unsigned long) nr_free_pages() << (PAGE_SHIFT-10),
- max_mapnr << (PAGE_SHIFT-10),
- codesize >> 10,
- reservedpages << (PAGE_SHIFT-10),
- datasize >> 10,
- initsize >> 10);
+ printk("Memory: %luk/%luk available (%dk reserved including: %dk kernel code, %dk data, %dk BSS, %dk init, %dk page map)\n",
+ (unsigned long) nr_free_pages() << (PAGE_SHIFT-10),
+ max_mapnr << (PAGE_SHIFT-10),
+ reservedpages << (PAGE_SHIFT-10),
+ codesize >> 10,
+ datasize >> 10,
+ bsssize >> 10,
+ initsize >> 10,
+ pagemapsize >> 10);
p3_cache_init();
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)