diff --git a/bl32/sp_min/aarch32/entrypoint.S b/bl32/sp_min/aarch32/entrypoint.S index 693dd4b82..ba9d90d42 100644 --- a/bl32/sp_min/aarch32/entrypoint.S +++ b/bl32/sp_min/aarch32/entrypoint.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2023, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -118,8 +118,7 @@ func sp_min_entrypoint mov r1, r10 mov r2, r11 mov r3, r12 - bl sp_min_early_platform_setup2 - bl sp_min_plat_arch_setup + bl sp_min_setup /* Jump to the main function */ bl sp_min_main diff --git a/bl32/sp_min/sp_min_main.c b/bl32/sp_min/sp_min_main.c index 26cf2079d..1c7e9600a 100644 --- a/bl32/sp_min/sp_min_main.c +++ b/bl32/sp_min/sp_min_main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2023, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -169,6 +169,17 @@ uintptr_t get_arm_std_svc_args(unsigned int svc_mask) return (uintptr_t)&psci_args; } +/****************************************************************************** + * The SP_MIN setup function. Calls platforms init functions + *****************************************************************************/ +void sp_min_setup(u_register_t arg0, u_register_t arg1, u_register_t arg2, + u_register_t arg3) +{ + /* Perform early platform-specific setup */ + sp_min_early_platform_setup2(arg0, arg1, arg2, arg3); + sp_min_plat_arch_setup(); +} + /****************************************************************************** * The SP_MIN main function. Do the platform and PSCI Library setup. Also * initialize the runtime service framework. diff --git a/bl32/sp_min/sp_min_private.h b/bl32/sp_min/sp_min_private.h index 628581a4c..9c6b5fb29 100644 --- a/bl32/sp_min/sp_min_private.h +++ b/bl32/sp_min/sp_min_private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,6 +7,10 @@ #ifndef SP_MIN_PRIVATE_H #define SP_MIN_PRIVATE_H +#include + +void sp_min_setup(u_register_t arg0, u_register_t arg1, u_register_t arg2, + u_register_t arg3); void sp_min_main(void); void sp_min_warm_boot(void); void sp_min_fiq(void);