TianoCore EDK2 master
Loading...
Searching...
No Matches
CloudHvVirtMemInfoLib.c File Reference
#include <PiPei.h>
#include <Base.h>
#include <libfdt.h>
#include <Library/ArmLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/PrePiLib.h>
#include "CloudHvVirtMemInfoLib.h"

Go to the source code of this file.

Functions

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

Variables

CLOUDHV_MEM_NODE_INFO CloudHvMemNode [CLOUDHV_MAX_MEM_NODE_NUM]
 

Detailed Description

Copyright (c) 2022, Arm Limited. All rights reserved.

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

Definition in file CloudHvVirtMemInfoLib.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 174 of file CloudHvVirtMemInfoLib.c.

◆ CloudHvVirtMemInfoPeiLibConstructor()

RETURN_STATUS EFIAPI CloudHvVirtMemInfoPeiLibConstructor ( VOID  )

Get all of memory nodes info from DT. Store all of them into CloudHvMemNode which will be consumed by ArmVirtGetMemoryMap.

Return values
RETURN_SUCCESSSuccess.
EFI_NOT_FOUNDDT or the first memory node not found.

Definition at line 35 of file CloudHvVirtMemInfoLib.c.

Variable Documentation

◆ CloudHvMemNode

CLOUDHV_MEM_NODE_INFO CloudHvMemNode[CLOUDHV_MAX_MEM_NODE_NUM]

Definition at line 23 of file CloudHvVirtMemInfoLib.c.