mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
arm64: add CONTEXTIDR_EL1 reg
CONTEXTIDR_EL1 is used in debug and trace features to identify the
current process or context.
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45173
(cherry picked from commit 4f8ba1c9dd)
This commit is contained in:
parent
064adb4ba0
commit
2f0fe453bc
1 changed files with 9 additions and 0 deletions
|
|
@ -218,6 +218,15 @@
|
|||
#define CNTPCT_EL0_CRm 0
|
||||
#define CNTPCT_EL0_op2 1
|
||||
|
||||
/* CONTEXTIDR_EL1 - Context ID register */
|
||||
#define CONTEXTIDR_EL1 MRS_REG(CONTEXTIDR_EL1)
|
||||
#define CONTEXTIDR_EL1_REG MRS_REG_ALT_NAME(CONTEXTIDR_EL1)
|
||||
#define CONTEXTIDR_EL1_op0 3
|
||||
#define CONTEXTIDR_EL1_op1 0
|
||||
#define CONTEXTIDR_EL1_CRn 13
|
||||
#define CONTEXTIDR_EL1_CRm 0
|
||||
#define CONTEXTIDR_EL1_op2 1
|
||||
|
||||
/* CPACR_EL1 */
|
||||
#define CPACR_ZEN_MASK (0x3 << 16)
|
||||
#define CPACR_ZEN_TRAP_ALL1 (0x0 << 16) /* Traps from EL0 and EL1 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue