]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / PiSmmCpuDxeSmm / SmmProfile.h
index 328d2b975821e512538025e2cf1e27d3315741f6..484d81eb00e87794795338aa49448164bebbaadc 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
 SMM profile header file.\r
 \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
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -88,45 +82,54 @@ PageFaultIdtHandlerSmmProfile (
 \r
 \r
 /**\r
-  Check if XD feature is supported by a processor.\r
-\r
-  @param[in,out] Buffer  The pointer to private data buffer.\r
+  Check if feature is supported by a processor.\r
 \r
 **/\r
 VOID\r
-EFIAPI\r
 CheckFeatureSupported (\r
-  IN OUT VOID   *Buffer\r
+  VOID\r
   );\r
 \r
 /**\r
-  Enable XD feature.\r
+  Update page table according to protected memory ranges and the 4KB-page mapped memory ranges.\r
 \r
 **/\r
 VOID\r
-ActivateXd (\r
+InitPaging (\r
   VOID\r
   );\r
 \r
 /**\r
-  Update page table according to protected memory ranges and the 4KB-page mapped memory ranges.\r
+  Get CPU Index from APIC ID.\r
 \r
 **/\r
-VOID\r
-InitPaging (\r
+UINTN\r
+GetCpuIndex (\r
   VOID\r
   );\r
 \r
 /**\r
-  Check if XD and BTS features are supported by all processors.\r
+  Handler for Page Fault triggered by Guard page.\r
+\r
+  @param  ErrorCode  The Error code of exception.\r
 \r
 **/\r
 VOID\r
-CheckProcessorFeature (\r
-  VOID\r
+GuardPagePFHandler (\r
+  UINTN ErrorCode\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
+// The flag indicates if #DB will be setup in #PF handler.\r
+//\r
+extern BOOLEAN    mSetupDebugTrap;\r
 \r
 #endif // _SMM_PROFILE_H_\r