diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-01 23:55:37 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-03 13:26:29 +0200 |
commit | c8c034ce79418d2143c00c4cf751cfa51701f788 (patch) | |
tree | 1b7a53b01b5ff16ed3c7f35c5cb5bff912d77605 /arch/x86/kernel/setup_64.c | |
parent | 6af61a7614a306fe882a0c2b4ddc63b65aa66efc (diff) | |
download | kernel_samsung_smdk4412-c8c034ce79418d2143c00c4cf751cfa51701f788.zip kernel_samsung_smdk4412-c8c034ce79418d2143c00c4cf751cfa51701f788.tar.gz kernel_samsung_smdk4412-c8c034ce79418d2143c00c4cf751cfa51701f788.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index 978a0d6..2599b27 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) check_efer(); - max_pfn_mapped = init_memory_mapping(0, (max_pfn_mapped << PAGE_SHIFT)); + max_pfn_mapped = init_memory_mapping(0, (end_pfn << PAGE_SHIFT)); if (efi_enabled) efi_init(); |