Date: Wed, 5 Jan 2022 15:10:54 GMT From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0accd7267475 - main - Add the arm64 TTBR fields to armreg.h Message-ID: <202201051510.205FAscJ019156@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=0accd726747522b1754803ca73a3631ee150e9ee commit 0accd726747522b1754803ca73a3631ee150e9ee Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2022-01-05 13:06:47 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2022-01-05 14:56:25 +0000 Add the arm64 TTBR fields to armreg.h Sponsored by: The FreeBSD Foundation --- 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 bcbe9d13863d..19be64316fbc 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -1187,6 +1187,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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201051510.205FAscJ019156>