arm-trusted-firmware/include/lib/el3_runtime
Manish Pandey c72200357a fix(el3-runtime): replace CTX_ESR_EL3 with CTX_DOUBLE_FAULT_ESR
ESR_EL3 value is updated when an exception is taken to EL3 and its value
does not change until a new exception is taken to EL3. We need to save
ESR in context memory only when we expect nested exception in EL3.

The scenarios where we would expect nested EL3 execution are related
with FFH_SUPPORT, namely
  1.Handling pending async EAs at EL3 boundry
    - It uses CTX_SAVED_ESR_EL3 to preserve origins esr_el3
  2.Double fault handling
    - Introduce an explicit storage (CTX_DOUBLE_FAULT_ESR) for esr_el3
      to take care of DobuleFault.

As the ESR context has been removed, read the register directly instead
of its context value in RD platform.

Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Change-Id: I7720c5f03903f894a77413a235e3cc05c86f9c17
2025-02-28 11:48:37 +00:00
..
aarch32 chore: update to use Arm word across TF-A 2023-08-08 15:12:30 +01:00
aarch64 fix(el3-runtime): replace CTX_ESR_EL3 with CTX_DOUBLE_FAULT_ESR 2025-02-28 11:48:37 +00:00
context_debug.h feat(context-mgmt): report context memory usage 2023-12-29 14:37:14 +00:00
context_el1.h fix(cm): fix context management SYSREG128 write macros 2024-12-16 18:14:51 +01:00
context_el2.h fix(rmm): add support for BRBCR_EL2 register for feat_brbe 2025-02-20 21:13:32 -06:00
context_mgmt.h perf(amu): greatly simplify AMU context management 2025-02-25 08:50:46 +00:00
cpu_data.h perf(cpus): inline the init_cpu_data_ptr function 2025-02-24 09:36:11 +00:00
pubsub.h fix(pubsub): make sure LTO doesn't garbage collect the handlers 2024-12-17 13:27:18 +00:00
pubsub_events.h chore: update to use Arm word across TF-A 2023-08-08 15:12:30 +01:00
simd_ctx.h feat(simd): add sve state to simd ctxt struct 2024-08-19 11:10:10 -05:00