Commit 5681b292 authored by Sughosh Ganu's avatar Sughosh Ganu
Browse files

SPM: Register Secure Partition priority level with ehf module



Register a priority level, PLAT_SP_PRI, for secure partition with EL3
exception handling framework(ehf) module.

The secure partition manager(SPM) would raise the core's priority to
PLAT_SP_PRI before entering the secure partition, to protect the core
from getting interrupted while in secure partition.

Change-Id: I686897f052a4371e0efa9b929c07d3ad77249e95
Signed-off-by: default avatarSughosh Ganu <sughosh.ganu@arm.com>
parent 8a3588a7
...@@ -268,4 +268,6 @@ ...@@ -268,4 +268,6 @@
#define PLAT_ARM_SP_IMAGE_STACK_BASE (ARM_SP_IMAGE_NS_BUF_BASE + \ #define PLAT_ARM_SP_IMAGE_STACK_BASE (ARM_SP_IMAGE_NS_BUF_BASE + \
ARM_SP_IMAGE_NS_BUF_SIZE) ARM_SP_IMAGE_NS_BUF_SIZE)
#define PLAT_SP_PRI PLAT_RAS_PRI
#endif /* PLATFORM_DEF_H */ #endif /* PLATFORM_DEF_H */
...@@ -23,6 +23,9 @@ ehf_pri_desc_t arm_exceptions[] = { ...@@ -23,6 +23,9 @@ ehf_pri_desc_t arm_exceptions[] = {
/* Normal priority SDEI */ /* Normal priority SDEI */
EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_NORMAL_PRI), EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
#endif #endif
#if ENABLE_SPM
EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SP_PRI),
#endif
}; };
/* Plug in ARM exceptions to Exception Handling Framework. */ /* Plug in ARM exceptions to Exception Handling Framework. */
......
...@@ -142,6 +142,8 @@ ...@@ -142,6 +142,8 @@
SOC_CSS_DEVICE_SIZE, \ SOC_CSS_DEVICE_SIZE, \
MT_DEVICE | MT_RW | MT_SECURE | MT_USER) MT_DEVICE | MT_RW | MT_SECURE | MT_USER)
#define PLAT_SP_PRI PLAT_RAS_PRI
#if RAS_EXTENSION #if RAS_EXTENSION
/* Allocate 128KB for CPER buffers */ /* Allocate 128KB for CPER buffers */
#define PLAT_SP_BUF_BASE ULL(0x20000) #define PLAT_SP_BUF_BASE ULL(0x20000)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment