]> git.proxmox.com Git - mirror_edk2.git/blobdiff - 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
index 26a5bb185c631b631a2b8369d8a216746b5fba73..317546b5ba75b8d58e39e041e1b86c862fb4ab76 100644 (file)
@@ -1,24 +1,22 @@
-/** @file \r
-\r
+/** @file\r
   Support functions for managing debug image info table when loading and unloading\r
   images.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
 #ifndef __DEBUG_IMAGE_INFO_H__\r
 #define __DEBUG_IMAGE_INFO_H__\r
 \r
-#define FOUR_MEG_PAGES  0x400  \r
-#define FOUR_MEG_MASK   ((FOUR_MEG_PAGES * EFI_PAGE_SIZE) - 1)\r
+#define FOUR_MEG_ALIGNMENT   0x400000\r
 \r
 #define EFI_DEBUG_TABLE_ENTRY_SIZE       (sizeof (VOID *))\r
 \r
@@ -37,8 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 VOID\r
 CoreInitializeDebugImageInfoTable (\r
   VOID\r
-  )\r
-;\r
+  );\r
 \r
 \r
 /**\r
@@ -52,27 +49,25 @@ CoreInitializeDebugImageInfoTable (
 VOID\r
 CoreUpdateDebugTableCrc32 (\r
   VOID\r
-  )\r
-;\r
+  );\r
 \r
 \r
 /**\r
   Adds a new DebugImageInfo structure to the DebugImageInfo Table.  Re-Allocates\r
   the table if it's not large enough to accomidate another entry.\r
 \r
-  @param  ImageInfoType  type of debug image information \r
-  @param  LoadedImage    pointer to the loaded image protocol for the image being \r
-                         loaded \r
+  @param  ImageInfoType  type of debug image information\r
+  @param  LoadedImage    pointer to the loaded image protocol for the image being\r
+                         loaded\r
   @param  ImageHandle    image handle for the image being loaded\r
 \r
 **/\r
 VOID\r
 CoreNewDebugImageInfoEntry (\r
-  UINT32                    ImageInfoType,\r
-  EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,\r
-  EFI_HANDLE                ImageHandle\r
-  )\r
-;\r
+  IN  UINT32                      ImageInfoType,\r
+  IN  EFI_LOADED_IMAGE_PROTOCOL   *LoadedImage,\r
+  IN  EFI_HANDLE                  ImageHandle\r
+  );\r
 \r
 \r
 /**\r
@@ -84,7 +79,6 @@ CoreNewDebugImageInfoEntry (
 VOID\r
 CoreRemoveDebugImageInfoEntry (\r
   EFI_HANDLE ImageHandle\r
-  )\r
-;\r
+  );\r
 \r
 #endif\r