diff options
author | Liming Gao <liming.gao@intel.com> | 2015-12-18 02:28:44 +0000 |
---|---|---|
committer | lgao4 <lgao4@Edk2> | 2015-12-18 02:28:44 +0000 |
commit | 031950dfdc7b1c190e4fbb32fc147b3d51f40266 (patch) | |
tree | b8ef476c59a6514b3b450e7ef90f429ed7bccf46 /DuetPkg/EfiLdr | |
parent | dd62310aaf2c553c50f5ddfee75e3b1b00775f27 (diff) | |
download | edk2-platforms-031950dfdc7b1c190e4fbb32fc147b3d51f40266.tar.xz |
DuetPkg: Fix GCC error to avoid the duplicated global variables in EfiLdr
Move the global variable definitions into source code instead of head filer.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19338 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/EfiLdr')
-rw-r--r-- | DuetPkg/EfiLdr/EfiLdr.h | 3 | ||||
-rw-r--r-- | DuetPkg/EfiLdr/EfiLoader.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/DuetPkg/EfiLdr/EfiLdr.h b/DuetPkg/EfiLdr/EfiLdr.h index 665f405855..4f21cf3f79 100644 --- a/DuetPkg/EfiLdr/EfiLdr.h +++ b/DuetPkg/EfiLdr/EfiLdr.h @@ -80,9 +80,6 @@ typedef struct { BIOS_MEMORY_MAP_ENTRY MemoryMapEntry[1];
} BIOS_MEMORY_MAP;
-EFILDR_LOADED_IMAGE DxeCoreImage;
-EFILDR_LOADED_IMAGE DxeIplImage;
-
typedef
VOID
(EFIAPI * EFI_MAIN_ENTRYPOINT) (
diff --git a/DuetPkg/EfiLdr/EfiLoader.c b/DuetPkg/EfiLdr/EfiLoader.c index 6913027650..b23966e5ee 100644 --- a/DuetPkg/EfiLdr/EfiLoader.c +++ b/DuetPkg/EfiLdr/EfiLoader.c @@ -24,6 +24,9 @@ Revision History: #include "PeLoader.h"
#include "LzmaDecompress.h"
+EFILDR_LOADED_IMAGE DxeCoreImage;
+EFILDR_LOADED_IMAGE DxeIplImage;
+
VOID
SystemHang (
CHAR8 *Message
|