From d958721a06dce3aa0fc941c115db86e3f91254f7 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Mon, 12 Feb 2007 02:53:23 +0000 Subject: =?UTF-8?q?1)=20Added=20BIT0,=20BIT1,=20=E2=80=A6,=20BIT63=20to=20?= =?UTF-8?q?the=20Base=20Defines=202)=20Added=20MIN()=20and=20MAX()=20macro?= =?UTF-8?q?s=20to=20the=20Base=20Macros=203)=20Added=20StrStr(),=20StrDeci?= =?UTF-8?q?malToUnitn(),=20StrDecimalToUint64(),=20StrHexToUintn(),=20StrH?= =?UTF-8?q?exToUintn64(),=20UnicodeToAscii(),=20AsciiStrStr(),=20AsciiStrD?= =?UTF-8?q?ecimalToUnitn(),=20AsciiStrDecimalToUint64(),=20AsciiStrHexToUi?= =?UTF-8?q?ntn(),=20AsciiStrHexToUintn64(),=20and=20AsciiToUnicode()=20to?= =?UTF-8?q?=20the=20Base=20Library=20String=20Functions=204)=20Added=20the?= =?UTF-8?q?=20Base=20Library=20Checksum=20Functions=20which=20include=20Ca?= =?UTF-8?q?lculateSum8(),=20CaclculateCheckSum8(),=20CalculateSum16(),=20C?= =?UTF-8?q?alculateChecksum16(),=20CalculateSum32(),=20CalculateCheckSum32?= =?UTF-8?q?(),=20CalculateSum64(),=20CalculateChecksum64().?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5) Added MMIO Buffer functions to the I/O Library including MmioReadBuffer8(), MmioReadBuffer16(), MmioReadBuffer32(), MmioReadBuffer64(), MmioWriteBuffer8(), MmioWriteBuffer16(), MmioWriteBuffer32(), MmioWriteBuffer64(). 6) Changed the parameter name from SizeOfValue to SizeOfBuffer in PcdSetPtr(), PcdSetPtrEx(), PatchPcdSetPtr(), LibPcdSetPtr(), LibPcdSetPtrEx(), LibPatchPcdSetPtr() 7) Added RADIX_HEX flag to the Print Library to support the conversion of values to hexadecimal strings in UnicodeValueToString() and AsciiValueToString() 8) Added EfiGetCurrentTpl() UEFI Library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2363 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/DxeHobLib/HobLib.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'MdePkg/Library/DxeHobLib/HobLib.c') diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/HobLib.c index b4ad4ff2f0..672dd3e468 100644 --- a/MdePkg/Library/DxeHobLib/HobLib.c +++ b/MdePkg/Library/DxeHobLib/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 @@ -189,6 +189,30 @@ 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_HOB_HANDOFF_INFO_TABLE *HandOffHob; + + HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList (); + + return HandOffHob->BootMode; +} + /** Builds a HOB for a loaded PE32 module. -- cgit v1.2.3