Commit c43e5579 authored by Angelo Dureghello's avatar Angelo Dureghello Committed by Greg Ungerer

m68k: mm: fix node memblock init

After pulling 5.7.0 (linux-next merge), mcf5441x mmu boot was
hanging silently.

memblock_add() seems not appropriate, since using MAX_NUMNODES
as node id, while memblock_add_node() sets up memory for node id 0.
Signed-off-by: default avatarAngelo Dureghello <angelo.dureghello@timesys.com>
Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
parent d63bd8c8
...@@ -174,7 +174,7 @@ void __init cf_bootmem_alloc(void) ...@@ -174,7 +174,7 @@ void __init cf_bootmem_alloc(void)
m68k_memory[0].addr = _rambase; m68k_memory[0].addr = _rambase;
m68k_memory[0].size = _ramend - _rambase; m68k_memory[0].size = _ramend - _rambase;
memblock_add(m68k_memory[0].addr, m68k_memory[0].size); memblock_add_node(m68k_memory[0].addr, m68k_memory[0].size, 0);
/* compute total pages in system */ /* compute total pages in system */
num_pages = PFN_DOWN(_ramend - _rambase); num_pages = PFN_DOWN(_ramend - _rambase);
......
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