Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 2018 19:34:19 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327469 - head/sys/x86/include
Message-ID:  <201801011934.w01JYJG9009791@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801011934.w01JYJG9009791>