git: 2f0fe453bc70 - stable/14 - arm64: add CONTEXTIDR_EL1 reg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Oct 2024 15:05:00 UTC
The branch stable/14 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=2f0fe453bc7052123aa99f2cbc42981682834939
commit 2f0fe453bc7052123aa99f2cbc42981682834939
Author: Zachary Leaf <zachary.leaf@arm.com>
AuthorDate: 2024-05-10 12:47:37 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-10-21 15:03:26 +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
(cherry picked from commit 4f8ba1c9dd00e0ae20fa161e166715746b6d1c04)
---
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 e6b5d313a3cf..194731c98902 100644
--- a/sys/arm64/include/armreg.h
+++ b/sys/arm64/include/armreg.h
@@ -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 */