]>
git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
2 SMM profile header file.
4 Copyright (c) 2012 - 2015, 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"
21 /// MSR Register Index
23 #define MSR_IA32_MISC_ENABLE 0x1A0
30 Initialize processor environment for SMM profile.
32 @param CpuIndex The index of the processor.
41 Initialize SMM profile in SMM CPU entry point.
43 @param[in] Cr3 The base address of the page tables to use in SMM.
52 Increase SMI number in each SMI entry.
56 SmmProfileRecordSmiNum (
61 The Page fault handler to save SMM profile data.
63 @param Rip The RIP when exception happens.
64 @param ErrorCode The Error code of exception.
74 Updates page table to make some memory ranges (like system memory) absent
75 and make some memory ranges (like MMIO) present and execute disable. It also
76 update 2MB-page to 4KB-page for some memory ranges.
85 Page fault IDT handler for SMM Profile.
90 PageFaultIdtHandlerSmmProfile (
96 Check if XD feature is supported by a processor.
100 CheckFeatureSupported (
114 Update page table according to protected memory ranges and the 4KB-page mapped memory ranges.
123 Check if XD and BTS features are supported by all processors.
127 CheckProcessorFeature (
131 extern BOOLEAN mXdSupported
;
132 extern BOOLEAN mXdEnabled
;
134 #endif // _SMM_PROFILE_H_