git: 3a4927ad9145 - main - arm64: Add CNTPOFF_EL2 op/CR values
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Aug 2025 12:09:55 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=3a4927ad9145644a2ca99743a82982a8c60387f5
commit 3a4927ad9145644a2ca99743a82982a8c60387f5
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2025-07-30 10:53:33 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2025-07-30 12:46:39 +0000
arm64: Add CNTPOFF_EL2 op/CR values
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D51376
---
sys/arm64/include/hypervisor.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h
index a32e1000d911..e3a880afbe9c 100644
--- a/sys/arm64/include/hypervisor.h
+++ b/sys/arm64/include/hypervisor.h
@@ -51,6 +51,14 @@
#define CNTHCTL_EVNTDIR (1 << 3) /* Control transition trigger bit */
#define CNTHCTL_EVNTEN (1 << 2) /* Enable event stream */
+/* CNTPOFF_EL2 - Counter-timer Physical Offset Register */
+#define CNTPOFF_EL2_REG MRS_REG_ALT_NAME(CNTPOFF_EL2)
+#define CNTPOFF_EL2_op0 3
+#define CNTPOFF_EL2_op1 4
+#define CNTPOFF_EL2_CRn 14
+#define CNTPOFF_EL2_CRm 0
+#define CNTPOFF_EL2_op2 6
+
/* CPTR_EL2 - Architecture feature trap register */
/* Valid if HCR_EL2.E2H == 0 */
#define CPTR_TRAP_ALL 0xc01037ff /* Enable all traps */