summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/pcpu.h
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-02-09 06:24:43 +0000
committerneel <neel@FreeBSD.org>2010-02-09 06:24:43 +0000
commit91212ae23c60e92beb6a2bf31304fe0f44d84cee (patch)
tree6b8fc2551b36316f7e2c7437b3ef3de98dbabfb2 /sys/mips/include/pcpu.h
parent764ce56acec6e1b162434305a36821de3b6e3ded (diff)
downloadFreeBSD-src-91212ae23c60e92beb6a2bf31304fe0f44d84cee.zip
FreeBSD-src-91212ae23c60e92beb6a2bf31304fe0f44d84cee.tar.gz
SMP support for the mips port.
The platform that supports SMP currently is a SWARM with a dual-core Sibyte processor. The kernel config file to use is SWARM_SMP. Reviewed by: imp, rrs
Diffstat (limited to 'sys/mips/include/pcpu.h')
-rw-r--r--sys/mips/include/pcpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/mips/include/pcpu.h b/sys/mips/include/pcpu.h
index 3eb552d..b8928a1 100644
--- a/sys/mips/include/pcpu.h
+++ b/sys/mips/include/pcpu.h
@@ -55,6 +55,13 @@ extern struct pcpu *pcpup;
#define PCPU_SET(member,value) (PCPUP->pc_ ## member = (value))
#define PCPU_LAZY_INC(member) (++PCPUP->pc_ ## member)
+#ifdef SMP
+/*
+ * Instantiate the wired TLB entry at PCPU_TLB_ENTRY to map 'pcpu' at 'pcpup'.
+ */
+void mips_pcpu_tlb_init(struct pcpu *pcpu);
+#endif
+
#endif /* _KERNEL */
#endif /* !_MACHINE_PCPU_H_ */
OpenPOWER on IntegriCloud