TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugImageInfo.c File Reference
#include "DxeMain.h"

Go to the source code of this file.

Macros

#define EFI_DEBUG_TABLE_ENTRY_SIZE   (sizeof (VOID *))
 

Functions

VOID CoreInitializeDebugImageInfoTable (VOID)
 
VOID CoreUpdateDebugTableCrc32 (VOID)
 
VOID CoreNewDebugImageInfoEntry (IN UINT32 ImageInfoType, IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage, IN EFI_HANDLE ImageHandle)
 
VOID CoreRemoveDebugImageInfoEntry (EFI_HANDLE ImageHandle)
 

Variables

EFI_DEBUG_IMAGE_INFO_TABLE_HEADER mDebugInfoTableHeader
 
UINTN mMaxTableEntries = 0
 
EFI_SYSTEM_TABLE_POINTERmDebugTable = NULL
 

Detailed Description

Support functions for managing debug image info table when loading and unloading images.

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

Definition in file DebugImageInfo.c.

Macro Definition Documentation

◆ EFI_DEBUG_TABLE_ENTRY_SIZE

#define EFI_DEBUG_TABLE_ENTRY_SIZE   (sizeof (VOID *))

Definition at line 22 of file DebugImageInfo.c.

Function Documentation

◆ CoreInitializeDebugImageInfoTable()

VOID CoreInitializeDebugImageInfoTable ( VOID  )

Creates and initializes the DebugImageInfo Table. Also creates the configuration table and registers it into the system table.

Definition at line 30 of file DebugImageInfo.c.

◆ CoreNewDebugImageInfoEntry()

VOID CoreNewDebugImageInfoEntry ( IN UINT32  ImageInfoType,
IN EFI_LOADED_IMAGE_PROTOCOL LoadedImage,
IN EFI_HANDLE  ImageHandle 
)

Adds a new DebugImageInfo structure to the DebugImageInfo Table. Re-Allocates the table if it's not large enough to accomidate another entry.

Parameters
ImageInfoTypetype of debug image information
LoadedImagepointer to the loaded image protocol for the image being loaded
ImageHandleimage handle for the image being loaded

Definition at line 162 of file DebugImageInfo.c.

◆ CoreRemoveDebugImageInfoEntry()

VOID CoreRemoveDebugImageInfoEntry ( EFI_HANDLE  ImageHandle)

Removes and frees an entry from the DebugImageInfo Table.

Parameters
ImageHandleimage handle for the image being unloaded

Definition at line 253 of file DebugImageInfo.c.

◆ CoreUpdateDebugTableCrc32()

VOID CoreUpdateDebugTableCrc32 ( VOID  )

Update the CRC32 in the Debug Table. Since the CRC32 service is made available by the Runtime driver, we have to wait for the Runtime Driver to be installed before the CRC32 can be computed. This function is called elsewhere by the core when the runtime architectural protocol is produced.

Definition at line 142 of file DebugImageInfo.c.

Variable Documentation

◆ mDebugInfoTableHeader

EFI_DEBUG_IMAGE_INFO_TABLE_HEADER mDebugInfoTableHeader
Initial value:
= {
0,
0,
}
#define NULL
Definition: Base.h:319

Definition at line 12 of file DebugImageInfo.c.

◆ mDebugTable

Definition at line 20 of file DebugImageInfo.c.

◆ mMaxTableEntries

UINTN mMaxTableEntries = 0

Definition at line 18 of file DebugImageInfo.c.