]> git.baikalelectronics.ru Git - kernel.git/commit
x86, smap: Add a header file with macros for STAC/CLAC
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:43:10 +0000 (12:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:45:26 +0000 (12:45 -0700)
commit57e3a4173691a1702786cb69f4e2c1878d713890
treec79d01f5aea44c5f969a8aa4618cb92c69be3977
parent04ef5b16c3314141fe4a18fa9c7cda2c0d6cf48a
x86, smap: Add a header file with macros for STAC/CLAC

The STAC/CLAC instructions are only available with SMAP, but on the
other hand they aren't needed if SMAP is not available, or before we
start to run userspace, so construct them as alternatives which start
out as noops and are enabled by the alternatives mechanism.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1348256595-29119-7-git-send-email-hpa@linux.intel.com
arch/x86/Kconfig
arch/x86/include/asm/smap.h [new file with mode: 0644]