mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
Cater for preloaded BL33 within plat_get_ns_image_entrypoint()
The PRELOADED_BL33_BASE build option allows to preload a BL33 and bypass its loading by BL2. In ARM standard platforms, the conditional behaviour of PRELOADED_BL33_BASE is moved within the implementation of `plat_get_ns_image_entrypoint()` so that all callers may benefit from this feature. Change-Id: Iea060e204ec72f8081087837854535c4e320da4e
This commit is contained in:
parent
bc149bfcae
commit
48ac1df946
2 changed files with 5 additions and 4 deletions
|
@ -130,11 +130,8 @@ void arm_bl31_early_platform_setup(bl31_params_t *from_bl2,
|
||||||
* Tell BL31 where the non-trusted software image
|
* Tell BL31 where the non-trusted software image
|
||||||
* is located and the entry state information
|
* is located and the entry state information
|
||||||
*/
|
*/
|
||||||
#ifdef PRELOADED_BL33_BASE
|
|
||||||
bl33_image_ep_info.pc = PRELOADED_BL33_BASE;
|
|
||||||
#else
|
|
||||||
bl33_image_ep_info.pc = plat_get_ns_image_entrypoint();
|
bl33_image_ep_info.pc = plat_get_ns_image_entrypoint();
|
||||||
#endif /* PRELOADED_BL33_BASE */
|
|
||||||
bl33_image_ep_info.spsr = arm_get_spsr_for_bl33_entry();
|
bl33_image_ep_info.spsr = arm_get_spsr_for_bl33_entry();
|
||||||
SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE);
|
SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE);
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,11 @@ void arm_setup_page_tables(uintptr_t total_base,
|
||||||
|
|
||||||
uintptr_t plat_get_ns_image_entrypoint(void)
|
uintptr_t plat_get_ns_image_entrypoint(void)
|
||||||
{
|
{
|
||||||
|
#ifdef PRELOADED_BL33_BASE
|
||||||
|
return PRELOADED_BL33_BASE;
|
||||||
|
#else
|
||||||
return PLAT_ARM_NS_IMAGE_OFFSET;
|
return PLAT_ARM_NS_IMAGE_OFFSET;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
Loading…
Add table
Reference in a new issue