mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
committed by
Will Deacon
parent
13c63ce358
commit
93d0d6f8a6
@@ -249,9 +249,9 @@ SECTIONS
|
||||
__inittext_end = .;
|
||||
__initdata_begin = .;
|
||||
|
||||
init_idmap_pg_dir = .;
|
||||
__pi_init_idmap_pg_dir = .;
|
||||
. += INIT_IDMAP_DIR_SIZE;
|
||||
init_idmap_pg_end = .;
|
||||
__pi_init_idmap_pg_end = .;
|
||||
|
||||
.init.data : {
|
||||
INIT_DATA
|
||||
@@ -321,9 +321,9 @@ SECTIONS
|
||||
BSS_SECTION(SBSS_ALIGN, 0, 0)
|
||||
|
||||
. = ALIGN(PAGE_SIZE);
|
||||
init_pg_dir = .;
|
||||
__pi_init_pg_dir = .;
|
||||
. += INIT_DIR_SIZE;
|
||||
init_pg_end = .;
|
||||
__pi_init_pg_end = .;
|
||||
/* end of zero-init region */
|
||||
|
||||
. += SZ_4K; /* stack for the early C runtime */
|
||||
|
||||
Reference in New Issue
Block a user