git: 03005c9195c7 - stable/14 - x86 specialreg.h: add all defined bits for %cr4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Oct 2024 03:09:04 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=03005c9195c79ddbdba5c90019883d196fca1330 commit 03005c9195c79ddbdba5c90019883d196fca1330 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-10-23 23:11:50 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-10-30 02:40:30 +0000 x86 specialreg.h: add all defined bits for %cr4 (cherry picked from commit cc11bc1150d59c3da5c7319c9a23b3e48b069f1f) --- sys/x86/include/specialreg.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index c39cfa432d2f..d67112a3758b 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -84,6 +84,13 @@ #define CR4_SMAP 0x00200000 /* Supervisor-Mode Access Prevention */ #define CR4_PKE 0x00400000 /* Protection Keys Enable */ +#define CR4_CET 0x00800000 /* Control-flow Enforcement + Technology */ +#define CR4_PKS 0x01000000 /* Protection Keys for Supervisor */ +#define CR4_UINTR 0x02000000 /* User Interrupts Enable */ +#define CR4_LASS 0x08000000 /* Linear Address Space Separation */ +#define CR4_LAM_SUP 0x10000000 /* Linear-Address Masking for + Supervisor */ /* * Bits in AMD64 special registers. EFER is 64 bits wide.