[SPARC64]: Init boot cpu's trap_block[] before paging_init()
authorDavid S. Miller <davem@davemloft.net>
Mon, 27 Feb 2006 07:32:33 +0000 (23:32 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:30 +0000 (01:13 -0800)
It must be ready when we take over the trap table.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/setup.c

index 77066f1bbe2f540fbc5599eb3e2e4df9fb887c1d..0c68a76143af75cbe20f4947726113f187ab0831 100644 (file)
@@ -379,10 +379,10 @@ void __init setup_arch(char **cmdline_p)
 
        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)