浏览代码

x86: update mptable, fix

need to call early_reserve_e820() to preallocate mptable for 32bit

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Yinghai Lu 17 年之前
父节点
当前提交
6780711e98
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/kernel/setup_32.c

+ 2 - 0
arch/x86/kernel/setup_32.c

@@ -749,6 +749,8 @@ void __init setup_arch(char **cmdline_p)
 	 */
 	max_pfn = e820_end_of_ram();
 
+	/* preallocate 4k for mptable mpc */
+	early_reserve_e820_mpc_new();
 	/* update e820 for memory not covered by WB MTRRs */
 	mtrr_bp_init();
 	if (mtrr_trim_uncached_memory(max_pfn)) {