Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/identcpu.c
Show First 20 Lines • Show All 1,310 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
cpu_features_sysinit(void *dummy __unused) | cpu_features_sysinit(void *dummy __unused) | ||||
{ | { | ||||
u_int cpu; | u_int cpu; | ||||
CPU_FOREACH(cpu) | CPU_FOREACH(cpu) | ||||
print_cpu_features(cpu); | print_cpu_features(cpu); | ||||
} | } | ||||
SYSINIT(cpu_features, SI_SUB_SMP, SI_ORDER_ANY, cpu_features_sysinit, NULL); | SYSINIT(cpu_features, SI_SUB_SMP - 1, SI_ORDER_ANY, cpu_features_sysinit, NULL); | ||||
emaste: IMO it's worth a comment when we have these `- 1` or `+ 1` cases explaining why. | |||||
static u_long | static u_long | ||||
parse_cpu_features_hwcap(void) | parse_cpu_features_hwcap(void) | ||||
{ | { | ||||
u_long hwcap = 0; | u_long hwcap = 0; | ||||
switch (ID_AA64ISAR0_TS_VAL(user_cpu_desc.id_aa64isar0)) { | switch (ID_AA64ISAR0_TS_VAL(user_cpu_desc.id_aa64isar0)) { | ||||
case ID_AA64ISAR0_TS_CondM_8_4: | case ID_AA64ISAR0_TS_CondM_8_4: | ||||
▲ Show 20 Lines • Show All 550 Lines • Show Last 20 Lines |
IMO it's worth a comment when we have these - 1 or + 1 cases explaining why.