Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/include/cpuregs.h
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
#define MIPS_CCA_CACHED MIPS_CCA_CCEW | #define MIPS_CCA_CACHED MIPS_CCA_CCEW | ||||
#endif /* defined(CPU_R4000) || defined(CPU_R10000) */ | #endif /* defined(CPU_R4000) || defined(CPU_R10000) */ | ||||
#if defined(CPU_SB1) | #if defined(CPU_SB1) | ||||
#define MIPS_CCA_CC 0x05 /* Cacheable Coherent. */ | #define MIPS_CCA_CC 0x05 /* Cacheable Coherent. */ | ||||
#endif | #endif | ||||
#if defined(CPU_MIPS74KC) | #if defined(CPU_MIPS74K) | ||||
#define MIPS_CCA_UNCACHED 0x02 | #define MIPS_CCA_UNCACHED 0x02 | ||||
#define MIPS_CCA_CACHED 0x03 | #define MIPS_CCA_CACHED 0x03 | ||||
#endif | #endif | ||||
#if defined(CPU_MIPS1004KC) | #if defined(CPU_MIPS1004K) | ||||
#define MIPS_CCA_UNCACHED 0x02 | #define MIPS_CCA_UNCACHED 0x02 | ||||
#define MIPS_CCA_CACHED 0x05 | #define MIPS_CCA_CACHED 0x05 | ||||
#endif | #endif | ||||
#ifndef MIPS_CCA_UNCACHED | #ifndef MIPS_CCA_UNCACHED | ||||
#define MIPS_CCA_UNCACHED MIPS_CCA_UC | #define MIPS_CCA_UNCACHED MIPS_CCA_UC | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
/* CPU dependent mtc0 hazard hook */ | /* CPU dependent mtc0 hazard hook */ | ||||
#if defined(CPU_CNMIPS) || defined(CPU_RMI) | #if defined(CPU_CNMIPS) || defined(CPU_RMI) | ||||
#define COP0_SYNC | #define COP0_SYNC | ||||
#elif defined(CPU_NLM) | #elif defined(CPU_NLM) | ||||
#define COP0_SYNC .word 0xc0 /* ehb */ | #define COP0_SYNC .word 0xc0 /* ehb */ | ||||
#elif defined(CPU_SB1) | #elif defined(CPU_SB1) | ||||
#define COP0_SYNC ssnop; ssnop; ssnop; ssnop; ssnop; ssnop; ssnop; ssnop; ssnop | #define COP0_SYNC ssnop; ssnop; ssnop; ssnop; ssnop; ssnop; ssnop; ssnop; ssnop | ||||
#elif defined(CPU_MIPS74KC) || defined(CPU_MIPS1004KC) | #elif defined(CPU_MIPS74K) || defined(CPU_MIPS1004K) | ||||
#define COP0_SYNC .word 0xc0 /* ehb */ | #define COP0_SYNC .word 0xc0 /* ehb */ | ||||
#else | #else | ||||
/* | /* | ||||
* Pick a reasonable default based on the "typical" spacing described in the | * Pick a reasonable default based on the "typical" spacing described in the | ||||
* "CP0 Hazards" chapter of MIPS Architecture Book Vol III. | * "CP0 Hazards" chapter of MIPS Architecture Book Vol III. | ||||
*/ | */ | ||||
#define COP0_SYNC ssnop; ssnop; ssnop; ssnop; .word 0xc0; | #define COP0_SYNC ssnop; ssnop; ssnop; ssnop; .word 0xc0; | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 423 Lines • Show Last 20 Lines |