TianoCore EDK2 master
|
#include "SmmProfileInternal.h"
Go to the source code of this file.
Functions | |
VOID | ActivateSmmProfile (IN UINTN CpuIndex) |
VOID | InitSmmProfile (UINT32 Cr3) |
VOID | SmmProfileRecordSmiNum (VOID) |
VOID | SmmProfilePFHandler (UINTN Rip, UINTN ErrorCode) |
VOID | SmmProfileStart (VOID) |
VOID EFIAPI | PageFaultIdtHandlerSmmProfile (VOID) |
VOID | CheckFeatureSupported (IN UINTN CpuIndex) |
VOID | InitProtectedMemRange (VOID) |
VOID | SmmProfileUpdateMemoryAttributes (VOID) |
UINTN | GetCpuIndex (VOID) |
VOID | GuardPagePFHandler (UINTN ErrorCode) |
Variables | |
BOOLEAN | mXdSupported |
BOOLEAN | mXdEnabled |
BOOLEAN | mSmmProfileEnabled |
BOOLEAN | mSetupDebugTrap |
UINT32 | mSmiCommandPort |
SMM profile header file.
Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SmmProfile.h.
Initialize processor environment for SMM profile.
CpuIndex | The index of the processor. |
Definition at line 1007 of file SmmProfile.c.
Check if feature is supported by a processor.
CpuIndex | The index of the CPU. |
Definition at line 859 of file SmmProfile.c.
UINTN GetCpuIndex | ( | VOID | ) |
Get CPU Index from APIC ID.
Definition at line 166 of file SmmProfile.c.
VOID GuardPagePFHandler | ( | UINTN | ErrorCode | ) |
Handler for Page Fault triggered by Guard page.
ErrorCode | The Error code of exception. |
Definition at line 1208 of file SmmProfile.c.
VOID InitProtectedMemRange | ( | VOID | ) |
Initialize the protected memory ranges and the 4KB-page mapped memory ranges.
Definition at line 420 of file SmmProfile.c.
VOID InitSmmProfile | ( | UINT32 | Cr3 | ) |
Initialize SMM profile in SMM CPU entry point.
[in] | Cr3 | The base address of the page tables to use in SMM. |
Definition at line 1036 of file SmmProfile.c.
VOID EFIAPI PageFaultIdtHandlerSmmProfile | ( | VOID | ) |
Page fault IDT handler for SMM Profile.
The Page fault handler to save SMM profile data.
Rip | The RIP when exception happens. |
ErrorCode | The Error code of exception. |
Definition at line 1249 of file SmmProfile.c.
VOID SmmProfileRecordSmiNum | ( | VOID | ) |
Increase SMI number in each SMI entry.
Definition at line 991 of file SmmProfile.c.
VOID SmmProfileStart | ( | VOID | ) |
Updates page table to make some memory ranges (like system memory) absent and make some memory ranges (like MMIO) present and execute disable. It also update 2MB-page to 4KB-page for some memory ranges.
Definition at line 682 of file SmmProfile.c.
VOID SmmProfileUpdateMemoryAttributes | ( | VOID | ) |
This function updates memory attribute according to mProtectionMemRangeCount.
Definition at line 597 of file SmmProfile.c.
|
extern |
Definition at line 56 of file SmmProfile.c.
|
extern |
Definition at line 123 of file SmmProfile.c.
|
extern |
Definition at line 46 of file SmmProfile.c.
|
extern |
Definition at line 36 of file SmmProfile.c.
|
extern |
Definition at line 31 of file SmmProfile.c.