diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2025-09-15 12:08:04 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2025-09-15 13:32:18 +0000 |
| commit | 226375a1f6e3a71ca250c717e8d6d2c2e4b0b2e7 (patch) | |
| tree | ccc3161390df91ee3ef21736cf137352e52123f3 | |
| parent | 8fee6b9ecc84d3602a461f1cd33df91e50849cdf (diff) | |
arm64: Fix the FEAT_WFxT check
The check was always true so would incorrectly enable the feature when
it wasn't supported.
Due to another bug this was harmless.
Sponsored by: Arm Ltd
| -rw-r--r-- | sys/arm/arm/generic_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/arm/generic_timer.c b/sys/arm/arm/generic_timer.c index 97976408c943..dacef8de2257 100644 --- a/sys/arm/arm/generic_timer.c +++ b/sys/arm/arm/generic_timer.c @@ -889,7 +889,7 @@ wfxt_check(const struct cpu_feat *feat __unused, u_int midr __unused) if (!get_kernel_reg(ID_AA64ISAR2_EL1, &id_aa64isar2)) return (FEAT_ALWAYS_DISABLE); - if (ID_AA64ISAR2_WFxT_VAL(id_aa64isar2) >= ID_AA64ISAR2_WFxT_NONE) + if (ID_AA64ISAR2_WFxT_VAL(id_aa64isar2) >= ID_AA64ISAR2_WFxT_IMPL) return (FEAT_DEFAULT_ENABLE); return (FEAT_ALWAYS_DISABLE); |
