[SPARC64]: Init boot cpu's trap_block[] before paging_init()
It must be ready when we take over the trap table.
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c
index 77066f1..0c68a76 100644
--- a/arch/sparc64/kernel/setup.c
+++ b/arch/sparc64/kernel/setup.c
@@ -379,10 +379,10 @@
smp_setup_cpu_possible_map();
- paging_init();
-
/* Get boot processor trap_block[] setup. */
init_cur_cpu_trap(current_thread_info());
+
+ paging_init();
}
static int __init set_preferred_console(void)