diff options
author | Liming Gao <liming.gao@intel.com> | 2015-12-18 05:45:12 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-12-18 05:45:12 +0000 |
commit | bb44a4d107b7355d2daca93b679285cb5fd496c9 (patch) | |
tree | b4f8c9312ec6dae72420649a63cff37f51f15290 /DuetPkg | |
parent | f64559d605c9c2fb60770bd202dc3fea5dbb90e8 (diff) | |
download | edk2-platforms-bb44a4d107b7355d2daca93b679285cb5fd496c9.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.
(Sync patch r19338 from main trunk.)
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/branches/UDK2015@19355 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg')
-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
|