提交 7a15dd5c 编写于 作者: G Geert Uytterhoeven

m68k/atari: Call paging_init() before nf_init()

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: NGeert Uytterhoeven <geert@linux-m68k.org>
上级 371001e5
...@@ -346,12 +346,12 @@ void __init setup_arch(char **cmdline_p) ...@@ -346,12 +346,12 @@ void __init setup_arch(char **cmdline_p)
panic("No configuration setup"); panic("No configuration setup");
} }
paging_init();
#ifdef CONFIG_NATFEAT #ifdef CONFIG_NATFEAT
nf_init(); nf_init();
#endif #endif
paging_init();
#ifndef CONFIG_SUN3 #ifndef CONFIG_SUN3
for (i = 1; i < m68k_num_memory; i++) for (i = 1; i < m68k_num_memory; i++)
free_bootmem_node(NODE_DATA(i), m68k_memory[i].addr, free_bootmem_node(NODE_DATA(i), m68k_memory[i].addr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册