git: cc11bc1150d5 - main - x86 specialreg.h: add all defined bits for %cr4

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 24 Oct 2024 02:41:42 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=cc11bc1150d59c3da5c7319c9a23b3e48b069f1f

commit cc11bc1150d59c3da5c7319c9a23b3e48b069f1f
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-23 23:11:50 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-24 02:41:10 +0000

    x86 specialreg.h: add all defined bits for %cr4
    
    taken from Intel SDM rev. 085
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 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 b88c3e46000a..93690b94d2c3 100644
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -82,6 +82,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.