/* If the pointer to the HOB list is NULL, then ASSERT(). */
EFI_BOOT_MODE EFIAPI GetBootModeHob(VOID)
/* If the pointer to the HOB list is NULL, then ASSERT(). */
EFI_BOOT_MODE EFIAPI GetBootModeHob(VOID)
{
  EFI_STATUS     Status;
  EFI_BOOT_MODE  BootMode;
  Status = PeiServicesGetBootMode (&BootMode);
  ASSERT_EFI_ERROR (Status);
  return BootMode;
}