TianoCore EDK2 master
|
#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] |
Copyright (c) 2022, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CloudHvVirtMemInfoLib.c.
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.
[out] | VirtualMemoryMap | Array 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.
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_SUCCESS | Success. |
EFI_NOT_FOUND | DT or the first memory node not found. |
Definition at line 35 of file CloudHvVirtMemInfoLib.c.
CLOUDHV_MEM_NODE_INFO CloudHvMemNode[CLOUDHV_MAX_MEM_NODE_NUM] |
Definition at line 23 of file CloudHvVirtMemInfoLib.c.