m68k/mm: motorola - Add missing initialization of max_pfn
If max_pfn is not initialized, the various /proc/kpage* files are empty, and selftests/vm/mlock2-tests will fail. max_pfn is also used by the block layer to calculate DMA masks. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Greg Ungerer <gerg@uclinux.org>
This commit is contained in:
parent
8005c49d9a
commit
79ae4fa5c0
|
@ -250,7 +250,7 @@ void __init paging_init(void)
|
|||
high_memory = phys_to_virt(max_addr);
|
||||
|
||||
min_low_pfn = availmem >> PAGE_SHIFT;
|
||||
max_low_pfn = max_addr >> PAGE_SHIFT;
|
||||
max_pfn = max_low_pfn = max_addr >> PAGE_SHIFT;
|
||||
|
||||
for (i = 0; i < m68k_num_memory; i++) {
|
||||
addr = m68k_memory[i].addr;
|
||||
|
|
Loading…
Reference in a new issue