/* This service enables PEIMs to update the boot mode variable. */
EFI_STATUS EFIAPI PeiSetBootMode(IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_BOOT_MODE BootMode)
/* This service enables PEIMs to update the boot mode variable. */
EFI_STATUS EFIAPI PeiSetBootMode(IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_BOOT_MODE BootMode)
{
  PEI_CORE_INSTANCE           *PrivateData;
  EFI_HOB_HANDOFF_INFO_TABLE  *HandOffHob;
  PrivateData = PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices);
  HandOffHob = (PrivateData->HobList.HandoffInformationTable);
  HandOffHob->BootMode = BootMode;
  return EFI_SUCCESS;
}