瀏覽代碼

x86: set node_remap_size[0] in fallback path

... otherwise alloc_remap will not get node_mem_map from kva area, and
alloc_node_mem_map has to alloc_bootmem_node to get mem_map.
It will use two low address copies ...

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Yinghai Lu 17 年之前
父節點
當前提交
b66cd72073
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/x86/mm/discontig_32.c

+ 1 - 0
arch/x86/mm/discontig_32.c

@@ -124,6 +124,7 @@ int __init get_memcfg_numa_flat(void)
 	node_start_pfn[0] = 0;
 	node_end_pfn[0] = max_pfn;
 	memory_present(0, 0, max_pfn);
+	node_remap_size[0] = node_memmap_size_bytes(0, 0, max_pfn);
 
         /* Indicate there is one node available. */
 	nodes_clear(node_online_map);