>From 9f6deae2b7c4291e792e2b341da461091613b790 Mon Sep 17 00:00:00 2001 From: Angelo Dureghello Date: Sun, 27 Aug 2017 02:42:42 +0200 Subject: [PATCH 2/2] m68k: fix mmu for coldfire mcf5441x This patch fixes mmu not working for CPU's that has the base of the physical memory mapped at a non-zero address. Signed-off-by: Angelo Dureghello --- arch/m68k/mm/mcfmmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/mm/mcfmmu.c b/arch/m68k/mm/mcfmmu.c index c7efdf8e8eae..a79198a7fcab 100644 --- a/arch/m68k/mm/mcfmmu.c +++ b/arch/m68k/mm/mcfmmu.c @@ -186,7 +186,7 @@ void __init cf_bootmem_alloc(void) max_pfn = max_low_pfn = PFN_DOWN(_ramend); high_memory = (void *)_ramend; - m68k_virt_to_node_shift = fls(_ramend - _rambase - 1) - 6; + m68k_virt_to_node_shift = fls(_ramend - 1) - 6; module_fixup(NULL, __start_fixup, __stop_fixup); /* setup bootmem data */ -- 2.14.1