TianoCore EDK2 master
Loading...
Searching...
No Matches
CreatePageTable.c File Reference
#include <Library/CpuPageTableLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Base.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseLib.h>

Go to the source code of this file.

Functions

UINTN CreatePageTable (IN UINTN Address, IN UINTN Length)
 

Detailed Description

Function to create page talbe. Only create page table for x64, and leave the CreatePageTable empty for Ia32. Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CreatePageTable.c.

Function Documentation

◆ CreatePageTable()

UINTN CreatePageTable ( IN UINTN  Address,
IN UINTN  Length 
)

Create 1:1 mapping page table in reserved memory to map the specified address range.

Parameters
[in]LinearAddressThe start of the linear address range.
[in]LengthThe length of the linear address range.
Returns
The page table to be created.

Definition at line 21 of file CreatePageTable.c.