diff options
author | Manish Pandey <manish.pandey2@arm.com> | 2022-10-10 11:43:08 +0100 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2022-11-08 10:10:59 +0000 |
commit | 46cc41d5592a16f702f7f0c0c41f8948a3e11cda (patch) | |
tree | 44b1fc1e4e79fd83470e2212e7a28461c1a8c8f7 /common | |
parent | 0ae4a3a3f0cd841b83f2944dde9837ea67f08813 (diff) | |
download | arm-trusted-firmware-46cc41d5592a16f702f7f0c0c41f8948a3e11cda.tar.gz |
fix(ras): restrict RAS support for NS world
Current RAS framework in TF-A only supports handling errors originating
from NS world but the HANDLE_EA_EL3_FIRST flag configures it for all
lower Els. To make the current design of RAS explicit, rename this macro
to HANDLE_EA_EL3_FIRST_NS and set EA bit in scr_el3 only when
switching to NS world.
Note: I am unaware of any platform which traps errors originating in
Secure world to EL3, if there is any such platform then it need to
be explicitly implemented in TF-A
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Change-Id: If58eb201d8fa792c16325c85c26056e9b409b750
Diffstat (limited to 'common')
-rw-r--r-- | common/aarch64/debug.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/aarch64/debug.S b/common/aarch64/debug.S index d105d0871..742e022d5 100644 --- a/common/aarch64/debug.S +++ b/common/aarch64/debug.S @@ -168,7 +168,7 @@ func do_panic mrs x0, currentel ubfx x0, x0, #MODE_EL_SHIFT, #MODE_EL_WIDTH cmp x0, #MODE_EL3 -#if !HANDLE_EA_EL3_FIRST +#if !HANDLE_EA_EL3_FIRST_NS ldr x0, [sp], #0x10 b.eq el3_panic #else @@ -184,7 +184,7 @@ func do_panic to_panic_common: ldr x0, [sp], #0x10 -#endif /* HANDLE_EA_EL3_FIRST */ +#endif /* HANDLE_EA_EL3_FIRST_NS */ #endif /* CRASH_REPORTING */ panic_common: |