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