TianoCore EDK2 master
Loading...
Searching...
No Matches
RandomTest.h File Reference

Go to the source code of this file.

Data Structures

struct  ALLOCATE_PAGE_RECORD
 
struct  _ALLOCATE_PAGE_RECORDS
 
struct  MAP_ENTRY
 
struct  MAP_ENTRYS
 

Typedefs

typedef struct _ALLOCATE_PAGE_RECORDS ALLOCATE_PAGE_RECORDS
 
typedef VOID *(EFIAPI * ALLOCATE_PAGES) (IN ALLOCATE_PAGE_RECORDS *PagesRecord, IN UINTN Pages)
 

Functions

UINT64 GetEntryFromPageTable (IN UINTN PageTable, IN PAGING_MODE PagingMode, IN UINT64 Address, OUT UINTN *Level)
 

Detailed Description

Internal header for Random test.

Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file RandomTest.h.

Typedef Documentation

◆ ALLOCATE_PAGE_RECORDS

Definition at line 14 of file RandomTest.h.

◆ ALLOCATE_PAGES

typedef VOID *(EFIAPI * ALLOCATE_PAGES) (IN ALLOCATE_PAGE_RECORDS *PagesRecord, IN UINTN Pages)

Definition at line 17 of file RandomTest.h.

Function Documentation

◆ GetEntryFromPageTable()

UINT64 GetEntryFromPageTable ( IN UINTN  PageTable,
IN PAGING_MODE  PagingMode,
IN UINT64  Address,
OUT UINTN Level 
)

Get the leaf entry for a given linear address from a page table

Parameters
[in]PageTableThe pointer to the page table.
[in]PagingModeThe paging mode.
[in]LinearAddressThe linear address.
[out]Levelleaf entry's level.
Return values
Leafentry.

Definition at line 267 of file TestHelper.c.