Skip to contentSkip to conversation

x86: change propagate_e820_map back to find_max_pfn -32bit - fix

PATCH Applied Yinghai Lu 2 participants 2 messages Jun 3, 2008 – Jun 4, 2008 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: change propagate_e820_map back to find_max_pfn -32bit - fix

add memory_present calling for sparse and non numa

arch/x86/kernel/setup_32.c +2 -0
Index: linux-2.6/arch/x86/kernel/setup_32.c
===================================================================
@@ -378,11 +378,13 @@ static unsigned long __init setup_memory
 	if (max_pfn > max_low_pfn) {
 		highstart_pfn = max_low_pfn;
 	}
+	memory_present(0, 0, highend_pfn);
 	printk(KERN_NOTICE "%ldMB HIGHMEM available.\n",
 		pages_to_mb(highend_pfn - highstart_pfn));
 	num_physpages = highend_pfn;
 	high_memory = (void *) __va(highstart_pfn * PAGE_SIZE - 1) + 1;
 #else
+	memory_present(0, 0, max_low_pfn);
 	num_physpages = max_low_pfn;
 	high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1;
 #endif