aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-03 13:24:49 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-04 06:00:38 -0400
commitf19dc2f22a180dde3f9e611b76c73f5390c11ecd (patch)
tree51aedca5d71b125b8f3fd590a56554904143d450
parent835fc943f34139ed062f1ac194b52ed3b7123d88 (diff)
x86: change propagate_e820_map() back to find_max_pfn(), 32-bit, fix
add memory_present() calls for sparse and non-numa. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/setup_32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index c985a8c305e0..ccf3595202fa 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -377,11 +377,13 @@ static unsigned long __init setup_memory(void)
377 if (max_pfn > max_low_pfn) { 377 if (max_pfn > max_low_pfn) {
378 highstart_pfn = max_low_pfn; 378 highstart_pfn = max_low_pfn;
379 } 379 }
380 memory_present(0, 0, highend_pfn);
380 printk(KERN_NOTICE "%ldMB HIGHMEM available.\n", 381 printk(KERN_NOTICE "%ldMB HIGHMEM available.\n",
381 pages_to_mb(highend_pfn - highstart_pfn)); 382 pages_to_mb(highend_pfn - highstart_pfn));
382 num_physpages = highend_pfn; 383 num_physpages = highend_pfn;
383 high_memory = (void *) __va(highstart_pfn * PAGE_SIZE - 1) + 1; 384 high_memory = (void *) __va(highstart_pfn * PAGE_SIZE - 1) + 1;
384#else 385#else
386 memory_present(0, 0, max_low_pfn);
385 num_physpages = max_low_pfn; 387 num_physpages = max_low_pfn;
386 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1; 388 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1;
387#endif 389#endif