diff --git a/core/arch/arm/kernel/boot.c b/core/arch/arm/kernel/boot.c index 2e34a9b9dda..dc86bb1e13c 100644 --- a/core/arch/arm/kernel/boot.c +++ b/core/arch/arm/kernel/boot.c @@ -1248,9 +1248,9 @@ static void init_secondary_helper(unsigned long nsec_entry) * Note: this function is weak just to make it possible to exclude it from * the unpaged area so that it lies in the init area. */ -void __weak boot_init_primary_early(unsigned long pageable_part, - unsigned long nsec_entry __unused) +void __weak boot_init_primary_early(void) { + unsigned long pageable_part = 0; unsigned long e = PADDR_INVALID; if (!IS_ENABLED(CFG_WITH_ARM_TRUSTED_FW)) diff --git a/core/arch/arm/kernel/link_dummies_init.c b/core/arch/arm/kernel/link_dummies_init.c index 7d808c860cf..c3617b2a808 100644 --- a/core/arch/arm/kernel/link_dummies_init.c +++ b/core/arch/arm/kernel/link_dummies_init.c @@ -26,7 +26,6 @@ core_init_mmu_map(unsigned long seed __unused, } void __section(".text.dummy.boot_init_primary_early") -boot_init_primary_early(unsigned long pageable_part __unused, - unsigned long nsec_entry __unused) +boot_init_primary_early(void) { } diff --git a/core/arch/riscv/kernel/boot.c b/core/arch/riscv/kernel/boot.c index 16c424cefa4..0816b0a7bd8 100644 --- a/core/arch/riscv/kernel/boot.c +++ b/core/arch/riscv/kernel/boot.c @@ -124,8 +124,7 @@ __weak void boot_secondary_init_intc(void) { } -void boot_init_primary_early(unsigned long pageable_part __unused, - unsigned long nsec_entry __unused) +void boot_init_primary_early(void) { unsigned long e = PADDR_INVALID; diff --git a/core/include/kernel/boot.h b/core/include/kernel/boot.h index e960c3e8e04..bf78d5c3808 100644 --- a/core/include/kernel/boot.h +++ b/core/include/kernel/boot.h @@ -42,9 +42,7 @@ struct boot_embdata { extern const struct core_mmu_config boot_mmu_config; -/* @nsec_entry is unused if using CFG_WITH_ARM_TRUSTED_FW */ -void boot_init_primary_early(unsigned long pageable_part, - unsigned long nsec_entry); +void boot_init_primary_early(void); void boot_init_primary_late(unsigned long fdt, unsigned long manifest); void boot_init_memtag(void); void boot_save_args(unsigned long a0, unsigned long a1, unsigned long a2,