• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2   Sample to provide platform init function.
3 
4   Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5   This program and the accompanying materials
6   are licensed and made available under the terms and conditions of the BSD License
7   which accompanies this distribution.  The full text of the license may be found at
8   http://opensource.org/licenses/bsd-license.php.
9 
10   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 
13 **/
14 
15 
16 #include <PiPei.h>
17 #include <Library/DebugLib.h>
18 
19 /**
20   Platform initialization.
21 
22   @param[in] FspHobList   HobList produced by FSP.
23   @param[in] StartOfRange Start of temporary RAM.
24   @param[in] EndOfRange   End of temporary RAM.
25 **/
26 VOID
27 EFIAPI
PlatformInit(IN VOID * FspHobList,IN VOID * StartOfRange,IN VOID * EndOfRange)28 PlatformInit (
29   IN VOID                 *FspHobList,
30   IN VOID                 *StartOfRange,
31   IN VOID                 *EndOfRange
32   )
33 {
34   //
35   // Platform initialization
36   // Enable Serial port here
37   //
38 
39   DEBUG ((DEBUG_INFO, "PrintPeiCoreEntryPointParam\n"));
40   DEBUG ((DEBUG_INFO, "FspHobList - 0x%x\n", FspHobList));
41   DEBUG ((DEBUG_INFO, "StartOfRange - 0x%x\n", StartOfRange));
42   DEBUG ((DEBUG_INFO, "EndOfRange - 0x%x\n", EndOfRange));
43 }
44