aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r--arch/x86/kernel/setup_64.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index 6cbd15625dce..12948316e6a6 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -310,6 +310,13 @@ void __init setup_arch(char **cmdline_p)
310 * we are rounding upwards: 310 * we are rounding upwards:
311 */ 311 */
312 end_pfn = e820_end_of_ram(); 312 end_pfn = e820_end_of_ram();
313 /* update e820 for memory not covered by WB MTRRs */
314 mtrr_bp_init();
315 if (mtrr_trim_uncached_memory(end_pfn)) {
316 e820_register_active_regions(0, 0, -1UL);
317 end_pfn = e820_end_of_ram();
318 }
319
313 num_physpages = end_pfn; 320 num_physpages = end_pfn;
314 321
315 check_efer(); 322 check_efer();