diff options
Diffstat (limited to 'arch/i386/kernel/setup.c')
-rw-r--r-- | arch/i386/kernel/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index f1682206d304..71a540362b78 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -1170,6 +1170,14 @@ static unsigned long __init setup_memory(void) | |||
1170 | } | 1170 | } |
1171 | printk(KERN_NOTICE "%ldMB HIGHMEM available.\n", | 1171 | printk(KERN_NOTICE "%ldMB HIGHMEM available.\n", |
1172 | pages_to_mb(highend_pfn - highstart_pfn)); | 1172 | pages_to_mb(highend_pfn - highstart_pfn)); |
1173 | num_physpages = highend_pfn; | ||
1174 | high_memory = (void *) __va(highstart_pfn * PAGE_SIZE - 1) + 1; | ||
1175 | #else | ||
1176 | num_physpages = max_low_pfn; | ||
1177 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1; | ||
1178 | #endif | ||
1179 | #ifdef CONFIG_FLATMEM | ||
1180 | max_mapnr = num_physpages; | ||
1173 | #endif | 1181 | #endif |
1174 | printk(KERN_NOTICE "%ldMB LOWMEM available.\n", | 1182 | printk(KERN_NOTICE "%ldMB LOWMEM available.\n", |
1175 | pages_to_mb(max_low_pfn)); | 1183 | pages_to_mb(max_low_pfn)); |