OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
MemoryDebug.c File Reference
#include <Uefi.h>
#include <Guid/MemoryAttributesTable.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BaseOverflowLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>

Go to the source code of this file.

Functions

STATIC VOID OcPrintMemoryDescriptor (IN EFI_MEMORY_DESCRIPTOR *Desc)
 
VOID OcPrintMemoryAttributesTable (VOID)
 
VOID OcPrintMemoryMap (IN UINTN MemoryMapSize, IN EFI_MEMORY_DESCRIPTOR *MemoryMap, IN UINTN DescriptorSize)
 

Variables

STATIC CONST CHAR8 * mEfiMemoryTypeDesc [EfiMaxMemoryType]
 

Detailed Description

Copyright (C) 2019, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file MemoryDebug.c.

Function Documentation

◆ OcPrintMemoryAttributesTable()

VOID OcPrintMemoryAttributesTable ( VOID )

Print memory attributes table if present.

Definition at line 96 of file MemoryDebug.c.

◆ OcPrintMemoryDescriptor()

STATIC VOID OcPrintMemoryDescriptor ( IN EFI_MEMORY_DESCRIPTOR * Desc)

Definition at line 46 of file MemoryDebug.c.

◆ OcPrintMemoryMap()

VOID OcPrintMemoryMap ( IN UINTN MemoryMapSize,
IN EFI_MEMORY_DESCRIPTOR * MemoryMap,
IN UINTN DescriptorSize )

Print memory map.

Parameters
[in]MemoryMapSizeMemory map size in bytes.
[in]MemoryMapMemory map to print.
[in]DescriptorSizeMemory map descriptor size in bytes.

Definition at line 144 of file MemoryDebug.c.

Variable Documentation

◆ mEfiMemoryTypeDesc

STATIC CONST CHAR8* mEfiMemoryTypeDesc[EfiMaxMemoryType]
Initial value:
= {
"Reserved ",
"LDR Code ",
"LDR Data ",
"BS Code ",
"BS Data ",
"RT Code ",
"RT Data ",
"Available",
"Unusable ",
"ACPI RECL",
"ACPI NVS ",
"MemMapIO ",
"MemPortIO",
"PAL Code ",
"Persist "
}

Definition at line 26 of file MemoryDebug.c.