svn commit: r199760 - in projects/mips/sys/mips: include mips
Warner Losh
imp at FreeBSD.org
Tue Nov 24 17:15:23 UTC 2009
Author: imp
Date: Tue Nov 24 17:15:22 2009
New Revision: 199760
URL: http://svn.freebsd.org/changeset/base/199760
Log:
Add in Cavium's CID. Report what the unknown CID is.
Modified:
projects/mips/sys/mips/include/locore.h
projects/mips/sys/mips/mips/cpu.c
Modified: projects/mips/sys/mips/include/locore.h
==============================================================================
--- projects/mips/sys/mips/include/locore.h Tue Nov 24 17:14:23 2009 (r199759)
+++ projects/mips/sys/mips/include/locore.h Tue Nov 24 17:15:22 2009 (r199760)
@@ -60,6 +60,7 @@ typedef int mips_prid_t;
/* 0x09 unannounced */
/* 0x0a unannounced */
#define MIPS_PRID_CID_LEXRA 0x0b /* Lexra */
+#define MIPS_PRID_CID_CAVIUM 0x0d /* Cavium */
#define MIPS_PRID_COPTS(x) (((x) >> 24) & 0x00ff) /* Company Options */
#ifdef _KERNEL
Modified: projects/mips/sys/mips/mips/cpu.c
==============================================================================
--- projects/mips/sys/mips/mips/cpu.c Tue Nov 24 17:14:23 2009 (r199759)
+++ projects/mips/sys/mips/mips/cpu.c Tue Nov 24 17:15:22 2009 (r199760)
@@ -178,9 +178,12 @@ cpu_identify(void)
case MIPS_PRID_CID_LEXRA:
printf("Lexra");
break;
+ case MIPS_PRID_CID_CAVIUM:
+ printf("Cavium");
+ break;
case MIPS_PRID_CID_PREHISTORIC:
default:
- printf("Unknown");
+ printf("Unknown cid %#x", cpuinfo.cpu_vendor);
break;
}
printf(" processor v%d.%d\n", cpuinfo.cpu_rev, cpuinfo.cpu_impl);
More information about the svn-src-projects
mailing list