Skip to content

Commit cdd3bb5

Browse files
committed
Merge tag 'm68knommu-for-v5.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu mm fixes from Greg Ungerer: "Two critical mm related fixes that affect booting of m68k/ColdFire devices. Both fix problems caused by recent system init memblock changes" * tag 'm68knommu-for-v5.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: mm: fix node memblock init m68k: nommu: register start of the memory with memblock
2 parents 684c8cc + c43e557 commit cdd3bb5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arch/m68k/kernel/setup_no.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ void __init setup_arch(char **cmdline_p)
138138
pr_debug("MEMORY -> ROMFS=0x%p-0x%06lx MEM=0x%06lx-0x%06lx\n ",
139139
__bss_stop, memory_start, memory_start, memory_end);
140140

141-
memblock_add(memory_start, memory_end - memory_start);
141+
memblock_add(_rambase, memory_end - _rambase);
142+
memblock_reserve(_rambase, memory_start - _rambase);
142143

143144
/* Keep a copy of command line */
144145
*cmdline_p = &command_line[0];

arch/m68k/mm/mcfmmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void __init cf_bootmem_alloc(void)
174174
m68k_memory[0].addr = _rambase;
175175
m68k_memory[0].size = _ramend - _rambase;
176176

177-
memblock_add(m68k_memory[0].addr, m68k_memory[0].size);
177+
memblock_add_node(m68k_memory[0].addr, m68k_memory[0].size, 0);
178178

179179
/* compute total pages in system */
180180
num_pages = PFN_DOWN(_ramend - _rambase);

0 commit comments

Comments
 (0)