aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/setup.c4
-rw-r--r--arch/x86/mm/init.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 0d77e56e821b..4031d6cb3ff9 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -862,12 +862,16 @@ void __init setup_arch(char **cmdline_p)
862 max_low_pfn = max_pfn; 862 max_low_pfn = max_pfn;
863 863
864 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; 864 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1;
865 max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT;
865#endif 866#endif
866 867
867#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION 868#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION
868 setup_bios_corruption_check(); 869 setup_bios_corruption_check();
869#endif 870#endif
870 871
872 printk(KERN_DEBUG "initial memory mapped : 0 - %08lx\n",
873 max_pfn_mapped<<PAGE_SHIFT);
874
871 reserve_brk(); 875 reserve_brk();
872 876
873 /* max_pfn_mapped is updated here */ 877 /* max_pfn_mapped is updated here */
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index 95f5ecf2be50..92d2108a62c3 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -132,12 +132,11 @@ static void __init find_early_table_space(unsigned long end, int use_pse,
132 */ 132 */
133#ifdef CONFIG_X86_32 133#ifdef CONFIG_X86_32
134 start = 0x7000; 134 start = 0x7000;
135 e820_table_start = find_e820_area(start, max_pfn_mapped<<PAGE_SHIFT, 135#else
136 tables, PAGE_SIZE);
137#else /* CONFIG_X86_64 */
138 start = 0x8000; 136 start = 0x8000;
139 e820_table_start = find_e820_area(start, end, tables, PAGE_SIZE);
140#endif 137#endif
138 e820_table_start = find_e820_area(start, max_pfn_mapped<<PAGE_SHIFT,
139 tables, PAGE_SIZE);
141 if (e820_table_start == -1UL) 140 if (e820_table_start == -1UL)
142 panic("Cannot find space for the kernel page tables"); 141 panic("Cannot find space for the kernel page tables");
143 142