git: 264659e43385 - stable/13 - Add the arm64 TTBR fields to armreg.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Jan 2022 11:32:50 UTC
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=264659e43385379407b5bef36a2a6ff60cfe01bc
commit 264659e43385379407b5bef36a2a6ff60cfe01bc
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-01-05 13:06:47 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-01-31 10:05:47 +0000
Add the arm64 TTBR fields to armreg.h
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 0accd726747522b1754803ca73a3631ee150e9ee)
---
sys/arm64/include/armreg.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h
index 0057a353de66..ba36183b25d3 100644
--- a/sys/arm64/include/armreg.h
+++ b/sys/arm64/include/armreg.h
@@ -1185,6 +1185,13 @@
#define TCR_SMP_ATTRS 0
#endif
+/* TTBR0_EL1 & TTBR1_EL1 - Translation Table Base Register 0 & 1 */
+#define TTBR_ASID_SHIFT 48
+#define TTBR_ASID_MASK (0xfffful << TTBR_ASID_SHIFT)
+#define TTBR_BADDR 0x0000fffffffffffeul
+#define TTBR_CnP_SHIFT 0
+#define TTBR_CnP (1ul << TTBR_CnP_SHIFT)
+
/* Saved Program Status Register */
#define DBG_SPSR_SS (0x1 << 21)