summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxeHobLib/HobLib.c
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-22 07:06:49 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-22 07:06:49 +0000
commit6812ef9feaa052ba669bccd43cd22238240d049d (patch)
tree812963c7df165f0d145cb9040ff02c09824cbd2b /MdePkg/Library/DxeHobLib/HobLib.c
parent36a975ddbd95717401fb2efbfdd78ff887aba7f5 (diff)
downloadedk2-platforms-6812ef9feaa052ba669bccd43cd22238240d049d.tar.xz
Update Hob Instance to remove the unused InternalHobLib.h file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5710 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/DxeHobLib/HobLib.c')
-rw-r--r--MdePkg/Library/DxeHobLib/HobLib.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/HobLib.c
index 605d42f80c..e13469534a 100644
--- a/MdePkg/Library/DxeHobLib/HobLib.c
+++ b/MdePkg/Library/DxeHobLib/HobLib.c
@@ -1,7 +1,7 @@
/** @file
- HOB Library.
+ HOB Library implemenation for Dxe Phase.
- Copyright (c) 2006 - 2007, Intel Corporation<BR>
+ Copyright (c) 2006 - 2008, Intel Corporation<BR>
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
@@ -22,7 +22,6 @@
#include <Library/UefiLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
-#include "HobLibInternal.h"
STATIC VOID *mHobList = NULL;
@@ -47,10 +46,11 @@ HobLibConstructor (
{
EFI_STATUS Status;
- Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);
+ Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);
ASSERT_EFI_ERROR (Status);
ASSERT (mHobList != NULL);
- return Status;
+
+ return EFI_SUCCESS;
}
/**
@@ -201,7 +201,7 @@ GetFirstGuidHob (
Get the Boot Mode from the HOB list.
This function returns the system boot mode information from the
- PHIT HOB in HOB list.
+ PHIT HOB in HOB list. If PHIT HOB is NULL, then ASSERT().
@param VOID
@@ -217,6 +217,7 @@ GetBootModeHob (
EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;
HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList ();
+ ASSERT (HandOffHob != NULL);
return HandOffHob->BootMode;
}