From db4d3fa114f01798537315b5b54da32204415332 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 20 Sep 2011 02:12:45 +0000 Subject: 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 --- DuetPkg/Library/DuetBdsLib/BdsPlatform.c | 19 ++----------------- DuetPkg/Library/DuetBdsLib/BdsPlatform.h | 3 ++- DuetPkg/Library/DuetBdsLib/PlatformBds.inf | 1 + 3 files changed, 5 insertions(+), 18 deletions(-) (limited to 'DuetPkg/Library') 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.
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
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.
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
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 #include #include +#include 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 -- cgit v1.2.3