]>
git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
2 SMM profile header file.
4 Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _SMM_PROFILE_H_
16 #define _SMM_PROFILE_H_
18 #include "SmmProfileInternal.h"
25 Initialize processor environment for SMM profile.
27 @param CpuIndex The index of the processor.
36 Initialize SMM profile in SMM CPU entry point.
38 @param[in] Cr3 The base address of the page tables to use in SMM.
47 Increase SMI number in each SMI entry.
51 SmmProfileRecordSmiNum (
56 The Page fault handler to save SMM profile data.
58 @param Rip The RIP when exception happens.
59 @param ErrorCode The Error code of exception.
69 Updates page table to make some memory ranges (like system memory) absent
70 and make some memory ranges (like MMIO) present and execute disable. It also
71 update 2MB-page to 4KB-page for some memory ranges.
80 Page fault IDT handler for SMM Profile.
85 PageFaultIdtHandlerSmmProfile (
91 Check if XD feature is supported by a processor.
95 CheckFeatureSupported (
100 Update page table according to protected memory ranges and the 4KB-page mapped memory ranges.
109 Get CPU Index from APIC ID.
118 // The flag indicates if execute-disable is supported by processor.
120 extern BOOLEAN mXdSupported
;
122 // The flag indicates if execute-disable is enabled on processor.
124 extern BOOLEAN mXdEnabled
;
126 #endif // _SMM_PROFILE_H_