mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
stm32mp1: check stronger the secondary CPU entry point
When using SP_min as monitor, only sp_min_warm_entrypoint() is a valid secure entry point. Change-Id: I440cec798e901b11a34dd482c33b2e378a8328ab Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com>
This commit is contained in:
parent
3fbec43648
commit
986419939a
1 changed files with 3 additions and 3 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <platform_def.h>
|
||||
|
||||
#include <arch_helpers.h>
|
||||
#include <bl32/sp_min/platform_sp_min.h>
|
||||
#include <common/debug.h>
|
||||
#include <drivers/arm/gic_common.h>
|
||||
#include <drivers/arm/gicv2.h>
|
||||
|
@ -68,9 +69,8 @@ static int stm32_pwr_domain_on(u_register_t mpidr)
|
|||
return PSCI_E_INVALID_PARAMS;
|
||||
}
|
||||
|
||||
if ((stm32_sec_entrypoint < STM32MP_SYSRAM_BASE) ||
|
||||
(stm32_sec_entrypoint > (STM32MP_SYSRAM_BASE +
|
||||
(STM32MP_SYSRAM_SIZE - 1)))) {
|
||||
/* Only one valid entry point */
|
||||
if (stm32_sec_entrypoint != (uintptr_t)&sp_min_warm_entrypoint) {
|
||||
return PSCI_E_INVALID_ADDRESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue