]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Use GetFirstGuidHob() instead of GetNextGuidHob() when only the first GUID instance...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Jan 2010 01:52:31 +0000 (01:52 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Jan 2010 01:52:31 +0000 (01:52 +0000)
Remove extra references to gEfiHobListGuid in INF files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9797 6f19259b-4bc3-4df7-8a09-765794883524

DuetPkg/DataHubGenDxe/DataHubGen.c
DuetPkg/FSVariable/FSVariable.inf
DuetPkg/FvbRuntimeService/DUETFwh.inf
DuetPkg/Library/DuetBdsLib/BdsPlatform.c
DuetPkg/SmbiosGenDxe/SmbiosGen.c

index 89169c2b2437d45db958f4b8f23cb943ba96ddaf..5d1354a71d6bb9c422c04c9d9fb58e44175f8bd3 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2010, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -35,8 +35,7 @@ GetSmbiosTablesFromHob (
   //\r
   // Get Hob List\r
   //\r
-  GuidHob.Raw = GetHobList ();\r
-  GuidHob.Raw = GetNextGuidHob (&gEfiSmbiosTableGuid, GuidHob.Raw);\r
+  GuidHob.Raw = GetFirstGuidHob (&gEfiSmbiosTableGuid);\r
   if (GuidHob.Raw != NULL) {\r
     Table = GET_GUID_HOB_DATA (GuidHob.Guid);\r
     if (Table != NULL) {\r
index a5c0c31e78cb030a61ace5d3f940f48d1b5bb61f..3fbce650c76a3d99139d1998e902f8482d8e9e1c 100644 (file)
@@ -1,6 +1,6 @@
 #/*++\r
 #\r
-# Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
+# Copyright (c) 2006 - 2010 Intel Corporation                                                         \r
 # All rights reserved. This program and the accompanying materials                          \r
 # are licensed and made available under the terms and conditions of the BSD License         \r
 # which accompanies this distribution.  The full text of the license may be found at        \r
   UefiDriverEntryPoint\r
 \r
 [Guids]\r
-  gEfiHobListGuid\r
   gEfiFlashMapHobGuid\r
   gEfiVariableGuid\r
   gEfiGlobalVariableGuid                        ## PRODUCES ## Variable Guid\r
+  \r
 [Protocols]\r
   gEfiVariableArchProtocolGuid\r
   gEfiVariableWriteArchProtocolGuid\r
@@ -70,5 +70,6 @@
   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize\r
+\r
 [Depex]\r
   TRUE\r
index b00ea7b5f1931745c57f97a7ac684e5c93c8b303..802b70b373ca437e21a4af158721dcf39ab91131 100644 (file)
@@ -1,6 +1,6 @@
 #/*++\r
 #\r
-# Copyright (c) 2007, Intel Corporation                                                         \r
+# Copyright (c) 2007 - 2010, Intel Corporation                                                         \r
 # All rights reserved. This program and the accompanying materials                          \r
 # are licensed and made available under the terms and conditions of the BSD License         \r
 # which accompanies this distribution.  The full text of the license may be found at        \r
@@ -50,7 +50,6 @@
 \r
 [Guids]\r
   gEfiFlashMapHobGuid\r
-  gEfiHobListGuid\r
 \r
 [Protocols]\r
   gEfiSimpleFileSystemProtocolGuid\r
index 3cbd082d26a84175aa7c30948f977f9a712f9745..00f735fc5581cb591bed61a186a52fa6ba58f83b 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2010, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -153,12 +153,8 @@ UpdateMemoryMap (
   UINTN                           Index;\r
   EFI_PHYSICAL_ADDRESS            Memory;\r
   EFI_GCD_MEMORY_SPACE_DESCRIPTOR Descriptor;\r
-  //\r
-  // Get Hob List\r
-  //\r
-  GuidHob.Raw = GetHobList();\r
   \r
-  GuidHob.Raw = GetNextGuidHob (&gEfiLdrMemoryDescriptorGuid, GuidHob.Raw);\r
+  GuidHob.Raw = GetFirstGuidHob (&gEfiLdrMemoryDescriptorGuid);\r
   if (GuidHob.Raw == NULL) {\r
     DEBUG ((EFI_D_ERROR, "Fail to get gEfiLdrMemoryDescriptorGuid from GUID HOB LIST!\n"));\r
     return;\r
index b615757553b8d92bdf176e870985f17950b1e2d5..f3d52da92dffd486c46fa47bb0985722bd0c1387 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2009, Intel Corporation                                                         \r
+Copyright (c) 2009 - 2010, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -30,11 +30,8 @@ GetSmbiosTablesFromHob (
 {\r
   EFI_PHYSICAL_ADDRESS       *Table;\r
   EFI_PEI_HOB_POINTERS        GuidHob;\r
-  //\r
-  // Get Hob List\r
-  //\r
-  GuidHob.Raw = GetHobList ();\r
-  GuidHob.Raw = GetNextGuidHob (&gEfiSmbiosTableGuid, GuidHob.Raw);\r
+\r
+  GuidHob.Raw = GetFirstGuidHob (&gEfiSmbiosTableGuid);\r
   if (GuidHob.Raw != NULL) {\r
     Table = GET_GUID_HOB_DATA (GuidHob.Guid);\r
     if (Table != NULL) {\r