]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/boot: Move init_pgdir[] and init_idmap_pgdir[] into __pi_ namespace
authorArd Biesheuvel <ardb@kernel.org>
Thu, 8 May 2025 11:43:30 +0000 (13:43 +0200)
committerWill Deacon <will@kernel.org>
Fri, 16 May 2025 15:05:21 +0000 (16:05 +0100)
commit93d0d6f8a654b623addb40f23e5c7696bc93fbd5
tree4e99f34477c003c3ea73143de444cb36e5e6e202
parent13c63ce358832e01575d3b186210966e17f9ff68
arm64/boot: Move init_pgdir[] and init_idmap_pgdir[] into __pi_ namespace

init_pgdir[] is only referenced from the startup code, but lives after
BSS in the linker map. Before tightening the rules about accessing BSS
from startup code, move init_pgdir[] into the __pi_ namespace, so it
does not need to be exported explicitly.

For symmetry, do the same with init_idmap_pgdir[], although it lives
before BSS.

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-6-ardb+git@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/pgtable.h
arch/arm64/kernel/head.S
arch/arm64/kernel/image-vars.h
arch/arm64/kernel/pi/pi.h
arch/arm64/kernel/vmlinux.lds.S