Commit 30687dec authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Catalin Marinas

arm64: Move feature overrides into the BSS section

In order to allow the CPU feature override detection code to run even
earlier, move the feature override global variables into BSS, which is
the only part of the static kernel image that is mapped read-write in
the initial ID map.
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-52-ardb+git@google.comSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent aa99aad7
...@@ -655,13 +655,13 @@ static const struct arm64_ftr_bits ftr_raz[] = { ...@@ -655,13 +655,13 @@ static const struct arm64_ftr_bits ftr_raz[] = {
#define ARM64_FTR_REG(id, table) \ #define ARM64_FTR_REG(id, table) \
__ARM64_FTR_REG_OVERRIDE(#id, id, table, &no_override) __ARM64_FTR_REG_OVERRIDE(#id, id, table, &no_override)
struct arm64_ftr_override __ro_after_init id_aa64mmfr1_override; struct arm64_ftr_override id_aa64mmfr1_override;
struct arm64_ftr_override __ro_after_init id_aa64pfr0_override; struct arm64_ftr_override id_aa64pfr0_override;
struct arm64_ftr_override __ro_after_init id_aa64pfr1_override; struct arm64_ftr_override id_aa64pfr1_override;
struct arm64_ftr_override __ro_after_init id_aa64zfr0_override; struct arm64_ftr_override id_aa64zfr0_override;
struct arm64_ftr_override __ro_after_init id_aa64smfr0_override; struct arm64_ftr_override id_aa64smfr0_override;
struct arm64_ftr_override __ro_after_init id_aa64isar1_override; struct arm64_ftr_override id_aa64isar1_override;
struct arm64_ftr_override __ro_after_init id_aa64isar2_override; struct arm64_ftr_override id_aa64isar2_override;
struct arm64_ftr_override arm64_sw_feature_override; struct arm64_ftr_override arm64_sw_feature_override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment