svn commit: r327469 - head/sys/x86/include
Konstantin Belousov
kib at FreeBSD.org
Mon Jan 1 19:34:20 UTC 2018
Author: kib
Date: Mon Jan 1 19:34:19 2018
New Revision: 327469
URL: https://svnweb.freebsd.org/changeset/base/327469
Log:
Add CR4.SMAP control bit.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Modified:
head/sys/x86/include/specialreg.h
Modified: head/sys/x86/include/specialreg.h
==============================================================================
--- head/sys/x86/include/specialreg.h Mon Jan 1 19:27:33 2018 (r327468)
+++ head/sys/x86/include/specialreg.h Mon Jan 1 19:34:19 2018 (r327469)
@@ -76,6 +76,7 @@
#define CR4_PCIDE 0x00020000 /* Enable Context ID */
#define CR4_XSAVE 0x00040000 /* XSETBV/XGETBV */
#define CR4_SMEP 0x00100000 /* Supervisor-Mode Execution Prevention */
+#define CR4_SMAP 0x00200000 /* Supervisor-Mode Access Prevention */
/*
* Bits in AMD64 special registers. EFER is 64 bits wide.
More information about the svn-src-all
mailing list