diff options
-rw-r--r-- | arch/x86/kernel/head64.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 97adf9828b95..2d2673c28aff 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c | |||
@@ -80,6 +80,8 @@ void __init x86_64_start_kernel(char * real_mode_data) | |||
80 | /* Cleanup the over mapped high alias */ | 80 | /* Cleanup the over mapped high alias */ |
81 | cleanup_highmap(); | 81 | cleanup_highmap(); |
82 | 82 | ||
83 | max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT; | ||
84 | |||
83 | for (i = 0; i < NUM_EXCEPTION_VECTORS; i++) { | 85 | for (i = 0; i < NUM_EXCEPTION_VECTORS; i++) { |
84 | #ifdef CONFIG_EARLY_PRINTK | 86 | #ifdef CONFIG_EARLY_PRINTK |
85 | set_intr_gate(i, &early_idt_handlers[i]); | 87 | set_intr_gate(i, &early_idt_handlers[i]); |
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index b11a238b2e35..c3cebfe7bfc9 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -932,7 +932,6 @@ void __init setup_arch(char **cmdline_p) | |||
932 | max_low_pfn = max_pfn; | 932 | max_low_pfn = max_pfn; |
933 | 933 | ||
934 | high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; | 934 | high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; |
935 | max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT; | ||
936 | #endif | 935 | #endif |
937 | 936 | ||
938 | /* | 937 | /* |