]>
git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
2 SMM profile header file.
4 Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _SMM_PROFILE_H_
10 #define _SMM_PROFILE_H_
12 #include "SmmProfileInternal.h"
19 Initialize processor environment for SMM profile.
21 @param CpuIndex The index of the processor.
30 Initialize SMM profile in SMM CPU entry point.
32 @param[in] Cr3 The base address of the page tables to use in SMM.
41 Increase SMI number in each SMI entry.
45 SmmProfileRecordSmiNum (
50 The Page fault handler to save SMM profile data.
52 @param Rip The RIP when exception happens.
53 @param ErrorCode The Error code of exception.
63 Updates page table to make some memory ranges (like system memory) absent
64 and make some memory ranges (like MMIO) present and execute disable. It also
65 update 2MB-page to 4KB-page for some memory ranges.
74 Page fault IDT handler for SMM Profile.
79 PageFaultIdtHandlerSmmProfile (
85 Check if feature is supported by a processor.
89 CheckFeatureSupported (
94 Update page table according to protected memory ranges and the 4KB-page mapped memory ranges.
103 Get CPU Index from APIC ID.
112 Handler for Page Fault triggered by Guard page.
114 @param ErrorCode The Error code of exception.
123 // The flag indicates if execute-disable is supported by processor.
125 extern BOOLEAN mXdSupported
;
127 // The flag indicates if execute-disable is enabled on processor.
129 extern BOOLEAN mXdEnabled
;
131 // The flag indicates if #DB will be setup in #PF handler.
133 extern BOOLEAN mSetupDebugTrap
;
135 #endif // _SMM_PROFILE_H_