summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Carlsson <md1ulfc@mdstud.chalmers.se>2000-07-11 21:03:46 +0000
committerUlf Carlsson <md1ulfc@mdstud.chalmers.se>2000-07-11 21:03:46 +0000
commitd7ccb05a00f8962a95382a92c35aabc7d7039514 (patch)
tree1e64417231dd356a8dc7b5b943a891d2d344e638
parent7920bff5b0da8139ce897b2440e0525ed8e244ed (diff)
$28 has to be setup before prom_init because smp_processor_id()
is used in __wake_up.
-rw-r--r--arch/mips64/kernel/head.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips64/kernel/head.S b/arch/mips64/kernel/head.S
index c7c474479..4a47176af 100644
--- a/arch/mips64/kernel/head.S
+++ b/arch/mips64/kernel/head.S
@@ -100,10 +100,6 @@ NESTED(kernel_entry, 16, sp) # kernel entry point
ARC64_TWIDDLE_PC
- /* Note that all firmware passed argument registers still
- have their values. */
- jal prom_init # initialize firmware
-
CLI # disable interrupts
mfc0 t0, CP0_STATUS
@@ -127,6 +123,10 @@ NESTED(kernel_entry, 16, sp) # kernel entry point
dsrl32 t0, t0, 0
mtc0 t0, CP0_WATCHHI
#endif
+ /* Note that all firmware passed argument registers still
+ have their values. */
+ jal prom_init # initialize firmware
+
jal start_kernel
1: b 1b # just in case ...
END(kernel_entry)