]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/boot: Move global CPU override variables out of BSS
authorArd Biesheuvel <ardb@kernel.org>
Thu, 8 May 2025 11:43:31 +0000 (13:43 +0200)
committerWill Deacon <will@kernel.org>
Fri, 16 May 2025 15:05:21 +0000 (16:05 +0100)
commit4afff6cc9a55b1a6ce4bf6fdf2084acd9ca34195
tree6d6e97809024df9741265c4849d2dc01963d97e1
parent93d0d6f8a654b623addb40f23e5c7696bc93fbd5
arm64/boot: Move global CPU override variables out of BSS

Accessing BSS will no longer be permitted from the startup code in
arch/arm64/kernel/pi, as some of it executes before BSS is cleared.
Clearing BSS earlier would involve managing cache coherency explicitly
in software, which is a hassle we prefer to avoid.

So move some variables that are assigned by the startup code out of BSS
and into .data.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Link: https://lore.kernel.org/r/20250508114328.2460610-7-ardb+git@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c