summaryrefslogtreecommitdiffstats
path: root/sys/mips/mips/machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/mips/machdep.c')
-rw-r--r--sys/mips/mips/machdep.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c
index a746b24..b06898d 100644
--- a/sys/mips/mips/machdep.c
+++ b/sys/mips/mips/machdep.c
@@ -112,8 +112,8 @@ int clocks_running = 0;
vm_offset_t kstack0;
#ifdef SMP
-struct pcpu __pcpu[32];
-char pcpu_boot_stack[KSTACK_PAGES * PAGE_SIZE * (MAXCPU-1)];
+struct pcpu __pcpu[MAXCPU];
+char pcpu_boot_stack[KSTACK_PAGES * PAGE_SIZE * MAXCPU];
#else
struct pcpu pcpu;
struct pcpu *pcpup = &pcpu;
@@ -288,6 +288,12 @@ mips_proc0_init(void)
PCPU_SET(curpcb, thread0.td_pcb);
}
+void
+cpu_initclocks(void)
+{
+ platform_initclocks();
+}
+
struct msgbuf *msgbufp=0;
/*
OpenPOWER on IntegriCloud