]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / UefiCpuPkg / PiSmmCpuDxeSmm / SmmProfile.h
index 45484674589d1589ce10a3830640a072715aee41..04a3dfb2e85764ea9dca99d83f1e105aea5812ef 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 SMM profile header file.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -17,11 +17,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "SmmProfileInternal.h"\r
 \r
-///\r
-/// MSR Register Index\r
-///\r
-#define MSR_IA32_MISC_ENABLE                  0x1A0\r
-\r
 //\r
 // External functions\r
 //\r
@@ -101,15 +96,6 @@ CheckFeatureSupported (
   VOID\r
   );\r
 \r
-/**\r
-  Enable XD feature.\r
-\r
-**/\r
-VOID\r
-ActivateXd (\r
-  VOID\r
-  );\r
-\r
 /**\r
   Update page table according to protected memory ranges and the 4KB-page mapped memory ranges.\r
 \r
@@ -120,15 +106,21 @@ InitPaging (
   );\r
 \r
 /**\r
-  Check if XD and BTS features are supported by all processors.\r
+  Get CPU Index from APIC ID.\r
 \r
 **/\r
-VOID\r
-CheckProcessorFeature (\r
+UINTN\r
+GetCpuIndex (\r
   VOID\r
   );\r
 \r
+//\r
+// The flag indicates if execute-disable is supported by processor.\r
+//\r
 extern BOOLEAN    mXdSupported;\r
+//\r
+// The flag indicates if execute-disable is enabled on processor.\r
+//\r
 extern BOOLEAN    mXdEnabled;\r
 \r
 #endif // _SMM_PROFILE_H_\r