mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 18:41:22 +00:00
refactor(context mgmt): remove registers accessible only from secure state from EL2 context
The following registers are only accessible from secure state, therefore don't need to be saved/restored during world switch. - SDER32_EL2 - VSTCR_EL2 - VSTTBR_EL2 This patch removes these registers from EL2 context. Signed-off-by: Zelalem Aweke <zelalem.aweke@arm.com> Change-Id: I24d08aacb1b6def261c7b37d3e1265bb76adafdc
This commit is contained in:
parent
807d6d6217
commit
7f41bcc76d
2 changed files with 5 additions and 46 deletions
|
@ -220,20 +220,17 @@
|
|||
#define CTX_TTBR1_EL2 U(0x1a0)
|
||||
#define CTX_VDISR_EL2 U(0x1a8)
|
||||
#define CTX_VSESR_EL2 U(0x1b0)
|
||||
#define CTX_VSTCR_EL2 U(0x1b8)
|
||||
#define CTX_VSTTBR_EL2 U(0x1c0)
|
||||
#define CTX_SDER32_EL2 U(0x1c8)
|
||||
#define CTX_VNCR_EL2 U(0x1d0)
|
||||
#define CTX_TRFCR_EL2 U(0x1d8)
|
||||
#define CTX_VNCR_EL2 U(0x1b8)
|
||||
#define CTX_TRFCR_EL2 U(0x1c0)
|
||||
|
||||
// Starting with Armv8.5
|
||||
#define CTX_SCXTNUM_EL2 U(0x1e0)
|
||||
#define CTX_SCXTNUM_EL2 U(0x1c8)
|
||||
|
||||
// Register for FEAT_HCX
|
||||
#define CTX_HCRX_EL2 U(0x1e8)
|
||||
#define CTX_HCRX_EL2 U(0x1d0)
|
||||
|
||||
/* Align to the next 16 byte boundary */
|
||||
#define CTX_EL2_SYSREGS_END U(0x1f0)
|
||||
#define CTX_EL2_SYSREGS_END U(0x1e0)
|
||||
|
||||
#endif /* CTX_INCLUDE_EL2_REGS */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue