summaryrefslogtreecommitdiff
path: root/DuetPkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-03 00:46:49 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-03 00:46:49 +0000
commit3eb90413badc94ddeb9ebbda61e4d703e4a706d7 (patch)
tree61df7b0cb1d5742ebac23e904be68e8054e4a18e /DuetPkg
parent8c7f0932d6a9649bad1c0d9318473b5652b808ec (diff)
downloadedk2-platforms-3eb90413badc94ddeb9ebbda61e4d703e4a706d7.tar.xz
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
Diffstat (limited to 'DuetPkg')
-rw-r--r--DuetPkg/DataHubGenDxe/DataHubGen.c2
-rw-r--r--DuetPkg/DataHubGenDxe/DataHubGen.dxs39
-rw-r--r--DuetPkg/DataHubGenDxe/DataHubGen.inf3
3 files changed, 3 insertions, 41 deletions
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
+