summaryrefslogtreecommitdiffstats
path: root/sys/mips/alchemy
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-01-08 22:48:21 +0000
committerimp <imp@FreeBSD.org>2010-01-08 22:48:21 +0000
commit382bd114d47d27897b6d0fe901f339d755ab880e (patch)
treef447652ac5a153a4a61518e866819b80cdbfe9bb /sys/mips/alchemy
parent24c5063f2e4bd0cb0d71f8d3737b7a4d089731c2 (diff)
downloadFreeBSD-src-382bd114d47d27897b6d0fe901f339d755ab880e.zip
FreeBSD-src-382bd114d47d27897b6d0fe901f339d755ab880e.tar.gz
Centralize initialization of pcpu, and set curthread early...
Diffstat (limited to 'sys/mips/alchemy')
-rw-r--r--sys/mips/alchemy/alchemy_machdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/mips/alchemy/alchemy_machdep.c b/sys/mips/alchemy/alchemy_machdep.c
index 2f4f1f6..bf03947 100644
--- a/sys/mips/alchemy/alchemy_machdep.c
+++ b/sys/mips/alchemy/alchemy_machdep.c
@@ -154,6 +154,9 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
kernend = round_page((vm_offset_t)&end);
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
+ /* Initialize pcpu stuff */
+ mips_pcpu_init();
+
cninit();
mips_init();
/* Set counter_freq for tick_init_params() */
OpenPOWER on IntegriCloud