Commit 40a7fe2f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] bootmem crash fix

From Roman Zippel.  Don't assume that physical memory starts at
physical address zero.
parent 52ab8b6a
......@@ -1192,7 +1192,8 @@ struct pglist_data contig_page_data = { .bdata = &contig_bootmem_data };
void __init free_area_init(unsigned long *zones_size)
{
free_area_init_node(0, &contig_page_data, NULL, zones_size, 0, NULL);
free_area_init_node(0, &contig_page_data, NULL, zones_size,
__pa(PAGE_OFFSET) >> PAGE_SHIFT, NULL);
mem_map = contig_page_data.node_mem_map;
}
#endif
......
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