svn commit: r194166 - projects/mips/sys/mips/octeon1
Warner Losh
imp at FreeBSD.org
Sun Jun 14 06:27:11 UTC 2009
Author: imp
Date: Sun Jun 14 06:27:11 2009
New Revision: 194166
URL: http://svn.freebsd.org/changeset/base/194166
Log:
Add bogus OCTEON_CORE_ID here. Really should integrate the pcpu.h stuff
that is in Cavium's base port.
Modified:
projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h
Modified: projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h
==============================================================================
--- projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h Sun Jun 14 06:26:33 2009 (r194165)
+++ projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h Sun Jun 14 06:27:11 2009 (r194166)
@@ -13,6 +13,14 @@
#ifndef LOCORE
+/* XXXimp: From Cavium's include/pcpu.h, need to port that over */
+#ifndef OCTEON_SMP
+#define OCTEON_CORE_ID 0
+#else
+extern struct pcpu *cpuid_to_pcpu[];
+#define OCTEON_CORE_ID (mips_rd_coreid())
+#endif
+
/*
* Utility inlines & macros
*/
More information about the svn-src-projects
mailing list