public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH] m68k/atari: Call paging_init() before nf_init()
@ 2013-10-18  7:09 Geert Uytterhoeven
  2013-10-18  7:29 ` Michael Schmitz
       [not found] ` <172f2b40c29a29a470215c14250a559e@biophys.uni-duesseldorf.de>
  0 siblings, 2 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2013-10-18  7:09 UTC (permalink / raw)
  To: linux-m68k; +Cc: linux-kernel, Geert Uytterhoeven

nf_init() uses virt_to_phys(), which depends on m68k_memoffset being set and
module_fixup() having been called, but this is only done in paging_init().
Hence call paging_init() before nf_init().

This went unnoticed, as virt_to_phys() is a no-op on Atari, unless you start
fiddling with the memory blocks in the bootinfo manually.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/kernel/setup_mm.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 99cfe0577ad0..5b8ec4d5f8e8 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -348,12 +348,12 @@ void __init setup_arch(char **cmdline_p)
 		panic("No configuration setup");
 	}
 
+	paging_init();
+
 #ifdef CONFIG_NATFEAT
 	nf_init();
 #endif
 
-	paging_init();
-
 #ifndef CONFIG_SUN3
 	for (i = 1; i < m68k_num_memory; i++)
 		free_bootmem_node(NODE_DATA(i), m68k_memory[i].addr,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-19  7:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-18  7:09 [PATCH] m68k/atari: Call paging_init() before nf_init() Geert Uytterhoeven
2013-10-18  7:29 ` Michael Schmitz
     [not found] ` <172f2b40c29a29a470215c14250a559e@biophys.uni-duesseldorf.de>
2013-10-18  7:42   ` Geert Uytterhoeven
2013-10-19  0:33     ` Michael Schmitz
     [not found]     ` <bedc4eadbebb75f6d51afea3f5755b7c@biophys.uni-duesseldorf.de>
2013-10-19  7:49       ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox