提交 0bef42e5 编写于 作者: J Johannes Weiner 提交者: Chris Zankel

xtensa: fix init_bootmem_node() argument order

The second argument to init_bootmem_node() is the PFN to place the
bootmem bitmap at and the third argument is the first PFN on the node.

This is currently backwards but never made any problems as both values
were always zero.
Signed-off-by: NJohannes Weiner <jw@emlix.com>
Signed-off-by: NChris Zankel <chris@zankel.net>
上级 28a0ce7f
...@@ -145,8 +145,9 @@ void __init bootmem_init(void) ...@@ -145,8 +145,9 @@ void __init bootmem_init(void)
/* Reserve the bootmem bitmap area */ /* Reserve the bootmem bitmap area */
mem_reserve(bootmap_start, bootmap_start + bootmap_size, 1); mem_reserve(bootmap_start, bootmap_start + bootmap_size, 1);
bootmap_size = init_bootmem_node(NODE_DATA(0), min_low_pfn, bootmap_size = init_bootmem_node(NODE_DATA(0),
bootmap_start >> PAGE_SHIFT, bootmap_start >> PAGE_SHIFT,
min_low_pfn,
max_low_pfn); max_low_pfn);
/* Add all remaining memory pieces into the bootmem map */ /* Add all remaining memory pieces into the bootmem map */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册