|
@@ -144,14 +144,14 @@ setup_memory_node(int nid, void *kernel_end)
|
|
|
if (!nid && (node_max_pfn < end_kernel_pfn || node_min_pfn > start_kernel_pfn))
|
|
|
panic("kernel loaded out of ram");
|
|
|
|
|
|
+ memblock_add(PFN_PHYS(node_min_pfn),
|
|
|
+ (node_max_pfn - node_min_pfn) << PAGE_SHIFT);
|
|
|
+
|
|
|
/* Zone start phys-addr must be 2^(MAX_ORDER-1) aligned.
|
|
|
Note that we round this down, not up - node memory
|
|
|
has much larger alignment than 8Mb, so it's safe. */
|
|
|
node_min_pfn &= ~((1UL << (MAX_ORDER-1))-1);
|
|
|
|
|
|
- memblock_add(PFN_PHYS(node_min_pfn),
|
|
|
- (node_max_pfn - node_min_pfn) << PAGE_SHIFT);
|
|
|
-
|
|
|
NODE_DATA(nid)->node_start_pfn = node_min_pfn;
|
|
|
NODE_DATA(nid)->node_present_pages = node_max_pfn - node_min_pfn;
|
|
|
|