From: Andy P. <at...@us...> - 2001-02-18 12:02:41
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/mm In directory usw-pr-cvs1:/tmp/cvs-serv15323/mm Modified Files: init.c Log Message: More pagelet fixes - pfns is the hardware ptes, and they need dividing by 8 Index: init.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/mm/init.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- init.c 2001/02/16 00:54:26 1.6 +++ init.c 2001/02/18 12:03:31 1.7 @@ -69,15 +69,15 @@ void mem_init(void) { - max_mapnr = num_physpages = max_low_pfn; + max_mapnr = num_physpages = max_low_pfn/8; /* this will put all low memory onto the freelists */ totalram_pages += free_all_bootmem(); +asm("halt"); + high_memory = (void *) __va((max_low_pfn/8) * PAGE_SIZE); - 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() << (PAGE_SHIFT-10), max_mapnr << (PAGE_SHIFT-10)); return; } |