PlatformInit.c 907 B

123456789101112131415161718192021222324252627282930313233343536
  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 <Library/DebugLib.h>
  9. #include <Library/SerialPortLib.h>
  10. VOID EnableInternalUart ();
  11. VOID
  12. EFIAPI
  13. PlatformInit (
  14. IN VOID *FspHobList,
  15. IN VOID *StartOfRange,
  16. IN VOID *EndOfRange
  17. )
  18. {
  19. //
  20. // Platform initialization
  21. // Enable Serial port here
  22. //
  23. EnableInternalUart ();
  24. SerialPortInitialize ();
  25. DEBUG ((DEBUG_INFO, "PlatformInit\n"));
  26. DEBUG ((DEBUG_INFO, "FspHobList - 0x%x\n", FspHobList));
  27. DEBUG ((DEBUG_INFO, "StartOfRange - 0x%x\n", StartOfRange));
  28. DEBUG ((DEBUG_INFO, "EndOfRange - 0x%x\n", EndOfRange));
  29. }