Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 2009 06:27:11 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r194166 - projects/mips/sys/mips/octeon1
Message-ID:  <200906140627.n5E6RBhl037760@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906140627.n5E6RBhl037760>