TianoCore EDK2 master
Loading...
Searching...
No Matches
PageTbl.c File Reference
#include "PiSmmCpuCommon.h"

Go to the source code of this file.

Functions

UINT32 SmmInitPageTable (VOID)
 
UINT64 AllocPage (VOID)
 
VOID EFIAPI SmiPFHandler (IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_SYSTEM_CONTEXT SystemContext)
 
VOID SaveCr2 (OUT UINTN *Cr2)
 
VOID RestoreCr2 (IN UINTN Cr2)
 

Detailed Description

Page table manipulation functions for IA-32 processors

Copyright (c) 2009 - 2024, Intel Corporation. All rights reserved.
Copyright (c) 2017, AMD Incorporated. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PageTbl.c.

Function Documentation

◆ AllocPage()

UINT64 AllocPage ( VOID  )

Allocate free Page for PageFault handler use.

Returns
Page address.

Definition at line 76 of file PageTbl.c.

◆ RestoreCr2()

VOID RestoreCr2 ( IN UINTN  Cr2)

This function returns with no action for 32 bit.

Parameters
[in]Cr2Value to write into CR2 register.

Definition at line 226 of file PageTbl.c.

◆ SaveCr2()

VOID SaveCr2 ( OUT UINTN Cr2)

This function returns with no action for 32 bit.

Parameters
[out]*Cr2Pointer to variable to hold CR2 register value.

Definition at line 213 of file PageTbl.c.

◆ SmiPFHandler()

VOID EFIAPI SmiPFHandler ( IN EFI_EXCEPTION_TYPE  InterruptType,
IN EFI_SYSTEM_CONTEXT  SystemContext 
)

ThePage Fault handler wrapper for SMM use.

Parameters
InterruptTypeDefines the type of interrupt or exception that occurred on the processor.This parameter is processor architecture specific.
SystemContextA pointer to the processor context when the interrupt occurred on the processor.

Definition at line 95 of file PageTbl.c.

◆ SmmInitPageTable()

UINT32 SmmInitPageTable ( VOID  )

Create PageTable for SMM use.

Returns
PageTable Address

Definition at line 20 of file PageTbl.c.