arm64: Move feature overrides into the BSS section
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:28:53 +0000 (13:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:29 +0000 (12:42 +0000)
commit30687dec5ed5576c743a4cd012a91f93848fe902
tree76918c694fe97a7a8470488360d279ddf98d217b
parentaa99aad798a8bc6d35ada2af1dc38f75d364e1ce
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: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-52-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpufeature.c