]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Core/Dxe/DebugImageInfo.h
Don't align image address for TeImage, because TeImage section alignment is undefined.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / DebugImageInfo.h
1 /** @file
2 Support functions for managing debug image info table when loading and unloading
3 images.
4
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
10
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.
13
14 **/
15
16 #ifndef __DEBUG_IMAGE_INFO_H__
17 #define __DEBUG_IMAGE_INFO_H__
18
19 #define FOUR_MEG_ALIGNMENT 0x400000
20
21 #define EFI_DEBUG_TABLE_ENTRY_SIZE (sizeof (VOID *))
22
23
24 /**
25 Creates and initializes the DebugImageInfo Table. Also creates the configuration
26 table and registers it into the system table.
27
28 Note:
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
32 be a problem.
33
34 **/
35 VOID
36 CoreInitializeDebugImageInfoTable (
37 VOID
38 );
39
40
41 /**
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
46 protocol is produced.
47
48 **/
49 VOID
50 CoreUpdateDebugTableCrc32 (
51 VOID
52 );
53
54
55 /**
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.
58
59 @param ImageInfoType type of debug image information
60 @param LoadedImage pointer to the loaded image protocol for the image being
61 loaded
62 @param ImageHandle image handle for the image being loaded
63
64 **/
65 VOID
66 CoreNewDebugImageInfoEntry (
67 IN UINT32 ImageInfoType,
68 IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,
69 IN EFI_HANDLE ImageHandle
70 );
71
72
73 /**
74 Removes and frees an entry from the DebugImageInfo Table.
75
76 @param ImageHandle image handle for the image being unloaded
77
78 **/
79 VOID
80 CoreRemoveDebugImageInfoEntry (
81 EFI_HANDLE ImageHandle
82 );
83
84 #endif