]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/PlatformInit.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / IntelFsp2WrapperPkg / Library / SecFspWrapperPlatformSecLibSample / PlatformInit.c
CommitLineData
cf1d4549
JY
1/** @file\r
2 Sample to provide platform init function.\r
3\r
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
512e23a3 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf1d4549
JY
6\r
7**/\r
8\r
cf1d4549
JY
9#include <PiPei.h>\r
10#include <Library/DebugLib.h>\r
11#include <Library/SerialPortLib.h>\r
12\r
13/**\r
14 Platform initialization.\r
15\r
16 @param[in] FspHobList HobList produced by FSP.\r
17 @param[in] StartOfRange Start of temporary RAM.\r
18 @param[in] EndOfRange End of temporary RAM.\r
19**/\r
20VOID\r
21EFIAPI\r
22PlatformInit (\r
7c7184e2
MK
23 IN VOID *FspHobList,\r
24 IN VOID *StartOfRange,\r
25 IN VOID *EndOfRange\r
cf1d4549
JY
26 )\r
27{\r
28 //\r
29 // Platform initialization\r
30 // Enable Serial port here\r
31 //\r
32 SerialPortInitialize ();\r
33\r
34 DEBUG ((DEBUG_INFO, "PrintPeiCoreEntryPointParam in PlatformInit\n"));\r
35 DEBUG ((DEBUG_INFO, "FspHobList - 0x%x\n", FspHobList));\r
36 DEBUG ((DEBUG_INFO, "StartOfRange - 0x%x\n", StartOfRange));\r
37 DEBUG ((DEBUG_INFO, "EndOfRange - 0x%x\n", EndOfRange));\r
38}\r