git: 4f8ba1c9dd00 - main - arm64: add CONTEXTIDR_EL1 reg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 May 2024 15:12:04 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=4f8ba1c9dd00e0ae20fa161e166715746b6d1c04
commit 4f8ba1c9dd00e0ae20fa161e166715746b6d1c04
Author: Zachary Leaf <zachary.leaf@arm.com>
AuthorDate: 2024-05-10 12:47:37 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-05-17 14:46:27 +0000
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
---
sys/arm64/include/armreg.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h
index ccd9f4a5c78a..d1480cd61184 100644
--- a/sys/arm64/include/armreg.h
+++ b/sys/arm64/include/armreg.h
@@ -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 */