Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mips/cpu.c
Context not available. | |||||
static void | static void | ||||
cpu_identify(void) | cpu_identify(void) | ||||
{ | { | ||||
uint32_t cfg0, cfg1, cfg2, cfg3; | uint32_t cfg0, cfg1, cfg2, cfg3, cfg7; | ||||
adrian: unused cfg7 if we don't have a cpu that uses it. | |||||
printf("cpu%d: ", 0); /* XXX per-cpu */ | printf("cpu%d: ", 0); /* XXX per-cpu */ | ||||
switch (cpuinfo.cpu_vendor) { | switch (cpuinfo.cpu_vendor) { | ||||
case MIPS_PRID_CID_MTI: | case MIPS_PRID_CID_MTI: | ||||
Context not available. | |||||
/* Print Config3 if it contains any useful info */ | /* Print Config3 if it contains any useful info */ | ||||
if (cfg3 & ~(0x80000000)) | if (cfg3 & ~(0x80000000)) | ||||
printf(" Config3=0x%b\n", cfg3, "\20\14ULRI\2SmartMIPS\1TraceLogic"); | printf(" Config3=0x%b\n", cfg3, "\20\14ULRI\2SmartMIPS\1TraceLogic"); | ||||
#if defined(CPU_NLM) || defined(CPU_MIPS1004K) || defined (CPU_MIPS74K) || \ | |||||
impUnsubmitted Not Done Inline ActionsI thought there was a config register that said cp7 was valid. Shouldn't we be checking that rather than this long list of #fidefs? imp: I thought there was a config register that said cp7 was valid. Shouldn't we be checking that… | |||||
adrianUnsubmitted Not Done Inline Actionsnot on mips24k/mips74k. adrian: not on mips24k/mips74k.
| |||||
mizhkaAuthorUnsubmitted Not Done Inline ActionsThere is no bit to identify CP7 presence. Generic MIPS32 Architecture guide mentions only Config1-5. And only 1004k/24k/74k docs mention Config7 as "Config7 register contains implementation specific configuration information. A number of these bits are write-able to disable certain performance enhancing features within the CPU"). mizhka: There is no bit to identify CP7 presence. Generic MIPS32 Architecture guide mentions only… | |||||
defined (CPU_MIPS24K) | |||||
cfg7 = mips_rd_config7(); | |||||
printf(" Config7=0x%b\n", cfg7, "\20\10AR"); | |||||
#endif | |||||
} | } | ||||
static struct rman cpu_hardirq_rman; | static struct rman cpu_hardirq_rman; | ||||
Context not available. |
unused cfg7 if we don't have a cpu that uses it.