From: qhuang8 Date: Tue, 3 Feb 2009 00:46:49 +0000 (+0000) Subject: Clean up DataHubGenDxe: X-Git-Tag: edk2-stable201903~18846 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3eb90413badc94ddeb9ebbda61e4d703e4a706d7 Clean up DataHubGenDxe: 1. Fix the structure assignment 2. Removed the unused DXS file. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7403 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/DuetPkg/DataHubGenDxe/DataHubGen.c b/DuetPkg/DataHubGenDxe/DataHubGen.c index 3878b74fc5..6d6770444d 100644 --- a/DuetPkg/DataHubGenDxe/DataHubGen.c +++ b/DuetPkg/DataHubGenDxe/DataHubGen.c @@ -172,7 +172,7 @@ InstallMemoryDataHub ( DataRecord.Record.ArrayStartAddress.MemoryArrayStartAddress = LShiftU64(SmbiosTable.Type19->StartingAddress, 10); DataRecord.Record.ArrayStartAddress.MemoryArrayEndAddress = LShiftU64((UINT64) SmbiosTable.Type19->EndingAddress + 1, 10) - 1; - DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.ProducerName = gEfiMemoryProducerGuid; + CopyGuid (&DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.ProducerName, &gEfiMemoryProducerGuid); DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.Instance = 0; DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.SubInstance = EFI_SUBCLASS_INSTANCE_NON_APPLICABLE; DataRecord.Record.ArrayStartAddress.MemoryArrayPartitionWidth = (UINT16)(SmbiosTable.Type19->PartitionWidth); diff --git a/DuetPkg/DataHubGenDxe/DataHubGen.dxs b/DuetPkg/DataHubGenDxe/DataHubGen.dxs deleted file mode 100644 index 418f6110a3..0000000000 --- a/DuetPkg/DataHubGenDxe/DataHubGen.dxs +++ /dev/null @@ -1,39 +0,0 @@ -/*++ - -Copyright (c) 2006 - 2007, 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 -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - - DataHub.dxs - -Abstract: - - Dependency expression source file. - ---*/ - - -#include "EfiDepex.h" - -#include EFI_PROTOCOL_DEFINITION (DataHub) -#if (EFI_SPECIFICATION_VERSION >= 0x0002000A) -#include EFI_PROTOCOL_DEFINITION (HiiDatabase) -#else -#include EFI_PROTOCOL_DEFINITION (Hii) -#endif - -DEPENDENCY_START - EFI_DATA_HUB_PROTOCOL_GUID AND -#if (EFI_SPECIFICATION_VERSION >= 0x0002000A) - EFI_HII_DATABASE_PROTOCOL_GUID -#else - EFI_HII_PROTOCOL_GUID -#endif -DEPENDENCY_END diff --git a/DuetPkg/DataHubGenDxe/DataHubGen.inf b/DuetPkg/DataHubGenDxe/DataHubGen.inf index 0f7803c46b..d77202ca0c 100644 --- a/DuetPkg/DataHubGenDxe/DataHubGen.inf +++ b/DuetPkg/DataHubGenDxe/DataHubGen.inf @@ -64,4 +64,5 @@ gEfiHiiProtocolGuid [Depex] - gEfiDataHubProtocolGuid AND gEfiHiiDatabaseProtocolGuid \ No newline at end of file + gEfiDataHubProtocolGuid AND gEfiHiiDatabaseProtocolGuid +