Home | History | Annotate | Download | only in SecFspWrapperPlatformSecLibSample
      1 /** @file
      2   Sample to provide platform init function.
      3 
      4   Copyright (c) 2014 - 2016, 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 #include <Library/SerialPortLib.h>
     19 
     20 /**
     21   Platform initialization.
     22 
     23   @param[in] FspHobList   HobList produced by FSP.
     24   @param[in] StartOfRange Start of temporary RAM.
     25   @param[in] EndOfRange   End of temporary RAM.
     26 **/
     27 VOID
     28 EFIAPI
     29 PlatformInit (
     30   IN VOID                 *FspHobList,
     31   IN VOID                 *StartOfRange,
     32   IN VOID                 *EndOfRange
     33   )
     34 {
     35   //
     36   // Platform initialization
     37   // Enable Serial port here
     38   //
     39   SerialPortInitialize ();
     40 
     41   DEBUG ((DEBUG_INFO, "PrintPeiCoreEntryPointParam in PlatformInit\n"));
     42   DEBUG ((DEBUG_INFO, "FspHobList - 0x%x\n", FspHobList));
     43   DEBUG ((DEBUG_INFO, "StartOfRange - 0x%x\n", StartOfRange));
     44   DEBUG ((DEBUG_INFO, "EndOfRange - 0x%x\n", EndOfRange));
     45 }
     46