2 Support functions for managing debug image info table when loading and unloading
5 Copyright (c) 2006 - 2008, Intel Corporation. <BR>
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef __DEBUG_IMAGE_INFO_H__
17 #define __DEBUG_IMAGE_INFO_H__
19 #define FOUR_MEG_ALIGNMENT 0x400000
21 #define EFI_DEBUG_TABLE_ENTRY_SIZE (sizeof (VOID *))
25 Creates and initializes the DebugImageInfo Table. Also creates the configuration
26 table and registers it into the system table.
29 This function allocates memory, frees it, and then allocates memory at an
30 address within the initial allocation. Since this function is called early
31 in DXE core initialization (before drivers are dispatched), this should not
36 CoreInitializeDebugImageInfoTable (
42 Update the CRC32 in the Debug Table.
43 Since the CRC32 service is made available by the Runtime driver, we have to
44 wait for the Runtime Driver to be installed before the CRC32 can be computed.
45 This function is called elsewhere by the core when the runtime architectural
50 CoreUpdateDebugTableCrc32 (
56 Adds a new DebugImageInfo structure to the DebugImageInfo Table. Re-Allocates
57 the table if it's not large enough to accomidate another entry.
59 @param ImageInfoType type of debug image information
60 @param LoadedImage pointer to the loaded image protocol for the image being
62 @param ImageHandle image handle for the image being loaded
66 CoreNewDebugImageInfoEntry (
67 IN UINT32 ImageInfoType
,
68 IN EFI_LOADED_IMAGE_PROTOCOL
*LoadedImage
,
69 IN EFI_HANDLE ImageHandle
74 Removes and frees an entry from the DebugImageInfo Table.
76 @param ImageHandle image handle for the image being unloaded
80 CoreRemoveDebugImageInfoEntry (
81 EFI_HANDLE ImageHandle