|
@@ -552,18 +552,6 @@ static void __init test_wp_bit(void)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-static void __init set_max_mapnr_init(void)
|
|
|
|
-{
|
|
|
|
-#ifdef CONFIG_HIGHMEM
|
|
|
|
- num_physpages = highend_pfn;
|
|
|
|
-#else
|
|
|
|
- num_physpages = max_low_pfn;
|
|
|
|
-#endif
|
|
|
|
-#ifdef CONFIG_FLATMEM
|
|
|
|
- max_mapnr = num_physpages;
|
|
|
|
-#endif
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static struct kcore_list kcore_mem, kcore_vmalloc;
|
|
static struct kcore_list kcore_mem, kcore_vmalloc;
|
|
|
|
|
|
void __init mem_init(void)
|
|
void __init mem_init(void)
|
|
@@ -590,14 +578,6 @@ void __init mem_init(void)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- set_max_mapnr_init();
|
|
|
|
-
|
|
|
|
-#ifdef CONFIG_HIGHMEM
|
|
|
|
- high_memory = (void *) __va(highstart_pfn * PAGE_SIZE - 1) + 1;
|
|
|
|
-#else
|
|
|
|
- high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1;
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
/* this will put all low memory onto the freelists */
|
|
/* this will put all low memory onto the freelists */
|
|
totalram_pages += free_all_bootmem();
|
|
totalram_pages += free_all_bootmem();
|
|
|
|
|