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
This commit is contained in:
committed by
Andrew Turner
parent
10b3eac88d
commit
4f8ba1c9dd
@@ -138,6 +138,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 */
|
||||
|
||||
Reference in New Issue
Block a user