From 6812ef9feaa052ba669bccd43cd22238240d049d Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 22 Aug 2008 07:06:49 +0000 Subject: 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 --- MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf | 3 +-- MdePkg/Library/DxeCoreHobLib/HobLib.c | 9 ++++----- MdePkg/Library/DxeCoreHobLib/InternalHobLib.h | 20 -------------------- 3 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 MdePkg/Library/DxeCoreHobLib/InternalHobLib.h (limited to 'MdePkg/Library/DxeCoreHobLib') diff --git a/MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf b/MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf index 3e1504559a..07b02fbff7 100644 --- a/MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf +++ b/MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf @@ -31,10 +31,8 @@ # [Sources.common] - InternalHobLib.h HobLib.c - [Packages] MdePkg/MdePkg.dec @@ -42,4 +40,5 @@ [LibraryClasses] BaseMemoryLib DebugLib + DxeCoreEntryPoint diff --git a/MdePkg/Library/DxeCoreHobLib/HobLib.c b/MdePkg/Library/DxeCoreHobLib/HobLib.c index 1cce53e2d7..b941bde19c 100644 --- a/MdePkg/Library/DxeCoreHobLib/HobLib.c +++ b/MdePkg/Library/DxeCoreHobLib/HobLib.c @@ -1,7 +1,7 @@ /** @file - HOB Library. + HOB Library implementation for DxeCore driver. - Copyright (c) 2006 - 2007, Intel Corporation
+ Copyright (c) 2006 - 2008, 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 @@ -16,12 +16,10 @@ #include - #include #include #include - -#include "InternalHobLib.h" +#include /** Returns the pointer to the HOB list. @@ -187,6 +185,7 @@ GetBootModeHob ( EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob; HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList (); + ASSERT (HandOffHob != NULL); return HandOffHob->BootMode; } diff --git a/MdePkg/Library/DxeCoreHobLib/InternalHobLib.h b/MdePkg/Library/DxeCoreHobLib/InternalHobLib.h deleted file mode 100644 index 8d29da179c..0000000000 --- a/MdePkg/Library/DxeCoreHobLib/InternalHobLib.h +++ /dev/null @@ -1,20 +0,0 @@ -/** @file - Internal include file of DXE Entry Point HOB Library. - - 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. - -**/ - -#ifndef __DXE_ENTRY_POINT_HOB_LIB_H__ -#define __DXE_ENTRY_POINT_HOB_LIB_H__ - -extern VOID *gHobList; - -#endif -- cgit v1.2.3