summaryrefslogtreecommitdiff
path: root/DuetPkg/Library
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-20 02:12:45 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-20 02:12:45 +0000
commitdb4d3fa114f01798537315b5b54da32204415332 (patch)
tree9f9ac8946a70df44980f442b84664eb3160670c9 /DuetPkg/Library
parentd499fad0b0732c31d75a32b6d45a2d3597018087 (diff)
downloadedk2-platforms-db4d3fa114f01798537315b5b54da32204415332.tar.xz
Clean up the private GUID definition in module Level.
Signed-off-by: lgao4 Reviewed-by: rni2 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12385 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/Library')
-rw-r--r--DuetPkg/Library/DuetBdsLib/BdsPlatform.c19
-rw-r--r--DuetPkg/Library/DuetBdsLib/BdsPlatform.h3
-rw-r--r--DuetPkg/Library/DuetBdsLib/PlatformBds.inf1
3 files changed, 5 insertions, 18 deletions
diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
index a478efd1cf..205c49c7af 100644
--- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
+++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
@@ -1,6 +1,6 @@
/*++
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -83,21 +83,6 @@ Returns:
return ;
}
-#define EFI_LDR_MEMORY_DESCRIPTOR_GUID \
- { 0x7701d7e5, 0x7d1d, 0x4432, {0xa4, 0x68, 0x67, 0x3d, 0xab, 0x8a, 0xde, 0x60 }}
-
-EFI_GUID gEfiLdrMemoryDescriptorGuid = EFI_LDR_MEMORY_DESCRIPTOR_GUID;
-
-#pragma pack(1)
-
-typedef struct {
- EFI_HOB_GUID_TYPE Hob;
- UINTN MemDescCount;
- EFI_MEMORY_DESCRIPTOR *MemDesc;
-} MEMORY_DESC_HOB;
-
-#pragma pack()
-
#if 0
VOID
PrintMemoryMap (
@@ -154,7 +139,7 @@ UpdateMemoryMap (
EFI_PHYSICAL_ADDRESS Memory;
EFI_GCD_MEMORY_SPACE_DESCRIPTOR Descriptor;
- GuidHob.Raw = GetFirstGuidHob (&gEfiLdrMemoryDescriptorGuid);
+ GuidHob.Raw = GetFirstGuidHob (&gLdrMemoryDescriptorGuid);
if (GuidHob.Raw == NULL) {
DEBUG ((EFI_D_ERROR, "Fail to get gEfiLdrMemoryDescriptorGuid from GUID HOB LIST!\n"));
return;
diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.h b/DuetPkg/Library/DuetBdsLib/BdsPlatform.h
index bd9d74fe7a..564d488c1a 100644
--- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.h
+++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.h
@@ -1,6 +1,6 @@
/*++
-Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -51,6 +51,7 @@ Abstract:
#include <Guid/HobList.h>
#include <Guid/PciExpressBaseAddress.h>
#include <Guid/GlobalVariable.h>
+#include <Guid/LdrMemoryDescriptor.h>
extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
diff --git a/DuetPkg/Library/DuetBdsLib/PlatformBds.inf b/DuetPkg/Library/DuetBdsLib/PlatformBds.inf
index e6aabd59b5..f50a62e57a 100644
--- a/DuetPkg/Library/DuetBdsLib/PlatformBds.inf
+++ b/DuetPkg/Library/DuetBdsLib/PlatformBds.inf
@@ -57,6 +57,7 @@
gEfiMpsTableGuid
gEfiSmbiosTableGuid
gEfiAcpiTableGuid
+ gLdrMemoryDescriptorGuid
[Pcd]
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut