Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/mm
In directory usw-pr-cvs1:/tmp/cvs-serv28360
Modified Files:
init.c
Log Message:
Finish off the memory initialization by freeing all the bootmem memory.
Index: init.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/mm/init.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- init.c 2001/01/26 00:27:00 1.2
+++ init.c 2001/01/29 01:01:32 1.3
@@ -28,10 +28,7 @@
/*
* In other architectures, paging_init sets up the kernel's page tables.
- * In Linux/VAX, this is already done by the early boot code, so all we
- * have to do is set up the mem_map[] array.
- *
- * The start_mem and end_mem addresses are virtual addresses
+ * In Linux/VAX, this is already done by the early boot code.
*/
void __init
paging_init()
@@ -68,19 +65,16 @@
void
mem_init(void)
{
- if (!mem_map) {
- BUG();
- }
+ max_mapnr = num_physpages = max_low_pfn;
- max_mapnr = num_physpages = max_pfn;
- high_memory = (void *) __va(max_pfn * PAGE_SIZE);
-
/* this will put all low memory onto the freelists */
totalram_pages += free_all_bootmem();
+ high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
+
printk("Memory: %luk/%luk available\n",
- (unsigned long) nr_free_pages() * 2,
- max_mapnr * 2
+ (unsigned long) nr_free_pages() / 2,
+ max_mapnr / 2
);
return;
|