aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_64.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-02 02:55:37 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-03 07:26:29 -0400
commitc8c034ce79418d2143c00c4cf751cfa51701f788 (patch)
tree1b7a53b01b5ff16ed3c7f35c5cb5bff912d77605 /arch/x86/kernel/setup_64.c
parent6af61a7614a306fe882a0c2b4ddc63b65aa66efc (diff)
x86: clean up max_pfn_mapped usage - 64-bit
on 64-bit we only get valid max_pfn_mapped after init_memory_mapping(). Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r--arch/x86/kernel/setup_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index 978a0d637f3f..2599b2744207 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -396,7 +396,7 @@ void __init setup_arch(char **cmdline_p)
396 396
397 check_efer(); 397 check_efer();
398 398
399 max_pfn_mapped = init_memory_mapping(0, (max_pfn_mapped << PAGE_SHIFT)); 399 max_pfn_mapped = init_memory_mapping(0, (end_pfn << PAGE_SHIFT));
400 if (efi_enabled) 400 if (efi_enabled)
401 efi_init(); 401 efi_init();
402 402