summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2016-02-18 13:09:23 -0800
committerMichael Kinney <michael.d.kinney@intel.com>2016-02-22 10:59:41 -0800
commite1695f8dcf18f612d34f6da0a4579a5b7c49ef9b (patch)
tree21e1079b6339c020420c274809c67221877d84fb /UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
parentd691abec1bae4db5e4c58be7dbce40974d810f7a (diff)
downloadedk2-e1695f8dcf18f612d34f6da0a4579a5b7c49ef9b.tar.gz
edk2-e1695f8dcf18f612d34f6da0a4579a5b7c49ef9b.tar.bz2
edk2-e1695f8dcf18f612d34f6da0a4579a5b7c49ef9b.zip
UefiCpuPkg/PiSmmCpuDxeSmm: Enable/Restore XD in SMM
If XD is supported, then SMM enables it. The non-SMM execution environment can choose to enable or disable XD, so the state of XD must be detected in each SMI and be enabled/restored. Cc: Jeff Fan <jeff.fan@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
index c6ce1f59ad..5488c148e8 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
@@ -21,6 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
/// MSR Register Index
///
#define MSR_IA32_MISC_ENABLE 0x1A0
+#define B_XD_DISABLE_BIT BIT34
//
// External functions