Commit a642eaa7 authored by David S. Miller's avatar David S. Miller

[CRIS/SPARC/SPARC64]: Init mem_map after free_area_init_node.

parent 0b01eb35
......@@ -346,7 +346,7 @@ paging_init(void)
*/
free_area_init_node(0, &contig_page_data, 0, zones_size, PAGE_OFFSET >> PAGE_SHIFT, 0);
mem_map = contig_page_data.node_mem_map;
}
extern unsigned long loops_per_jiffy; /* init/main.c */
......
......@@ -1342,6 +1342,7 @@ void __init srmmu_paging_init(void)
free_area_init_node(0, &contig_page_data, NULL, zones_size,
phys_base >> PAGE_SHIFT, zholes_size);
mem_map = contig_page_data.node_mem_map;
}
/* P3: easy to fix, todo. Current code is utterly broken, though. */
......
......@@ -2068,6 +2068,7 @@ void __init sun4c_paging_init(void)
free_area_init_node(0, &contig_page_data, NULL, zones_size,
phys_base >> PAGE_SHIFT, zholes_size);
mem_map = contig_page_data.node_mem_map;
}
cnt = 0;
......
......@@ -1554,6 +1554,7 @@ void __init paging_init(void)
free_area_init_node(0, &contig_page_data, NULL, zones_size,
phys_base >> PAGE_SHIFT, zholes_size);
mem_map = contig_page_data.node_mem_map;
}
device_scan();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment