aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/alchemy/alchemy_machdep.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2010-01-08 22:48:21 +0000
committerWarner Losh <imp@FreeBSD.org>2010-01-08 22:48:21 +0000
commita096e4b36bbc568e311547f1810eb82eaed2fce5 (patch)
treef447652ac5a153a4a61518e866819b80cdbfe9bb /sys/mips/alchemy/alchemy_machdep.c
parent375cce48d44fa29fd53bb84fba558fdd0f3d259c (diff)
Centralize initialization of pcpu, and set curthread early...
Notes
Notes: svn path=/projects/mips/; revision=201845
Diffstat (limited to 'sys/mips/alchemy/alchemy_machdep.c')
-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 2f4f1f6ca3d7..bf03947e111b 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() */