X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FPeiHobLib%2FHobLib.c;h=fdefd0ea51a654d20a90dd1d5627d85288361a9a;hp=3765d47cdb3d7b4cfe59c516e7c69282934a9c13;hb=d958721a06dce3aa0fc941c115db86e3f91254f7;hpb=511710d68f477e0210ae1830769e5d0cde4ea36a diff --git a/MdePkg/Library/PeiHobLib/HobLib.c b/MdePkg/Library/PeiHobLib/HobLib.c index 3765d47cdb..fdefd0ea51 100644 --- a/MdePkg/Library/PeiHobLib/HobLib.c +++ b/MdePkg/Library/PeiHobLib/HobLib.c @@ -1,7 +1,7 @@ /** @file HOB Library. - Copyright (c) 2006, Intel Corporation
+ 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 @@ -167,6 +167,32 @@ GetFirstGuidHob ( return GetNextGuidHob (Guid, HobList); } +/** + Get the Boot Mode from the HOB list. + + This function returns the system boot mode information from the + PHIT HOB in HOB list. + + @param VOID + + @return The Boot Mode. + +**/ +EFI_BOOT_MODE +EFIAPI +GetBootModeHob ( + VOID + ) +{ + EFI_STATUS Status; + EFI_BOOT_MODE BootMode; + + Status = PeiServicesGetBootMode (&BootMode); + ASSERT_EFI_ERROR (Status); + + return BootMode; +} + /** Adds a new HOB to the HOB List. @@ -178,6 +204,7 @@ GetFirstGuidHob ( @return The address of new HOB. **/ +STATIC VOID * InternalPeiCreateHob ( IN UINT16 Type,