summaryrefslogtreecommitdiffstats
path: root/sys/mips/sibyte/sb_machdep.c
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/sibyte/sb_machdep.c
parent24c5063f2e4bd0cb0d71f8d3737b7a4d089731c2 (diff)
downloadFreeBSD-src-382bd114d47d27897b6d0fe901f339d755ab880e.zip
FreeBSD-src-382bd114d47d27897b6d0fe901f339d755ab880e.tar.gz
Centralize initialization of pcpu, and set curthread early...
Diffstat (limited to 'sys/mips/sibyte/sb_machdep.c')
-rw-r--r--sys/mips/sibyte/sb_machdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/mips/sibyte/sb_machdep.c b/sys/mips/sibyte/sb_machdep.c
index 3a2b555..4cb42cd 100644
--- a/sys/mips/sibyte/sb_machdep.c
+++ b/sys/mips/sibyte/sb_machdep.c
@@ -240,6 +240,9 @@ platform_start(__register_t a0, __register_t a1, __register_t a2,
memset(&edata, 0, (vm_offset_t)&end - (vm_offset_t)&edata);
kernend = round_page((vm_offset_t)&end);
+ /* Initialize pcpu stuff */
+ mips_pcpu_init();
+
#ifdef CFE
/*
* Initialize CFE firmware trampolines before
OpenPOWER on IntegriCloud