TianoCore EDK2 master
Loading...
Searching...
No Matches
QemuVirtMemInfoLib.c File Reference
#include <Uefi.h>
#include <Pi/PiMultiPhase.h>
#include <Library/ArmLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/HobLib.h>
#include <Library/MemoryAllocationLib.h>

Go to the source code of this file.

Macros

#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS   5
 
#define MACH_VIRT_PERIPH_BASE   0x08000000
 
#define MACH_VIRT_PERIPH_SIZE   SIZE_128MB
 

Functions

RETURN_STATUS EFIAPI QemuVirtMemInfoLibConstructor (VOID)
 
VOID ArmVirtGetMemoryMap (OUT ARM_MEMORY_REGION_DESCRIPTOR **VirtualMemoryMap)
 

Detailed Description

Copyright (c) 2014-2017, Linaro Limited. All rights reserved.

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

Definition in file QemuVirtMemInfoLib.c.

Macro Definition Documentation

◆ MACH_VIRT_PERIPH_BASE

#define MACH_VIRT_PERIPH_BASE   0x08000000

Definition at line 26 of file QemuVirtMemInfoLib.c.

◆ MACH_VIRT_PERIPH_SIZE

#define MACH_VIRT_PERIPH_SIZE   SIZE_128MB

Definition at line 27 of file QemuVirtMemInfoLib.c.

◆ MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS

#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS   5

Definition at line 18 of file QemuVirtMemInfoLib.c.

Function Documentation

◆ ArmVirtGetMemoryMap()

VOID ArmVirtGetMemoryMap ( OUT ARM_MEMORY_REGION_DESCRIPTOR **  VirtualMemoryMap)

Return the Virtual Memory Map of your platform

This Virtual Memory Map is used by MemoryInitPei Module to initialize the MMU on your platform.

Parameters
[out]VirtualMemoryMapArray of ARM_MEMORY_REGION_DESCRIPTOR describing a Physical-to-Virtual Memory mapping. This array must be ended by a zero-filled entry. The allocated memory will not be freed.

Definition at line 65 of file QemuVirtMemInfoLib.c.

◆ QemuVirtMemInfoLibConstructor()

RETURN_STATUS EFIAPI QemuVirtMemInfoLibConstructor ( VOID  )

Default library constructor that obtains the memory size from a PCD.

Returns
Always returns RETURN_SUCCESS

Definition at line 37 of file QemuVirtMemInfoLib.c.