Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/cpuinfo.c
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
* Be careful, ACTRL cannot be changed if CPU is started in secure | * Be careful, ACTRL cannot be changed if CPU is started in secure | ||||
* mode(world) and write to ACTRL can cause exception! | * mode(world) and write to ACTRL can cause exception! | ||||
* These quirks are intended for optimizing CPU performance, not for | * These quirks are intended for optimizing CPU performance, not for | ||||
* applying errata workarounds. Nobody can expect that CPU with unfixed | * applying errata workarounds. Nobody can expect that CPU with unfixed | ||||
* errata is stable enough to execute the kernel until quirks are applied. | * errata is stable enough to execute the kernel until quirks are applied. | ||||
*/ | */ | ||||
static uint32_t cpu_quirks_actlr_mask; | static uint32_t cpu_quirks_actlr_mask; | ||||
SYSCTL_INT(_hw_cpu_quirks, OID_AUTO, actlr_mask, | SYSCTL_INT(_hw_cpu_quirks, OID_AUTO, actlr_mask, | ||||
CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &cpu_quirks_actlr_mask, 0, | CTLFLAG_RDTUN, &cpu_quirks_actlr_mask, 0, | ||||
"Bits to be masked in ACTLR"); | "Bits to be masked in ACTLR"); | ||||
static uint32_t cpu_quirks_actlr_set; | static uint32_t cpu_quirks_actlr_set; | ||||
SYSCTL_INT(_hw_cpu_quirks, OID_AUTO, actlr_set, | SYSCTL_INT(_hw_cpu_quirks, OID_AUTO, actlr_set, | ||||
CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &cpu_quirks_actlr_set, 0, | CTLFLAG_RDTUN, &cpu_quirks_actlr_set, 0, | ||||
"Bits to be set in ACTLR"); | "Bits to be set in ACTLR"); | ||||
/* Read and parse CPU id scheme */ | /* Read and parse CPU id scheme */ | ||||
void | void | ||||
cpuinfo_init(void) | cpuinfo_init(void) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |