BootModePei.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /** @file
  2. This PEIM will parse the hoblist from fsp and report them into pei core.
  3. This file contains the main entrypoint of the PEIM.
  4. Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #include <PiPei.h>
  8. #include <Ppi/MasterBootMode.h>
  9. static EFI_PEI_PPI_DESCRIPTOR mPpiList[] = {
  10. {
  11. EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
  12. &gEfiPeiMasterBootModePpiGuid,
  13. NULL
  14. },
  15. };
  16. /**
  17. This is the entrypoint of PEIM
  18. @param FileHandle Handle of the file being invoked.
  19. @param PeiServices Describes the list of possible PEI Services.
  20. @retval EFI_SUCCESS if it completed successfully.
  21. **/
  22. EFI_STATUS
  23. EFIAPI
  24. BootModePeiEntryPoint (
  25. IN EFI_PEI_FILE_HANDLE FileHandle,
  26. IN CONST EFI_PEI_SERVICES **PeiServices
  27. )
  28. {
  29. (*PeiServices)->SetBootMode(PeiServices, BOOT_WITH_FULL_CONFIGURATION);
  30. (*PeiServices)->InstallPpi (PeiServices, &mPpiList[0]);
  31. return EFI_SUCCESS;
  32. }