2 Install FspInitDone PPI and GetFspHobList API.
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.
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.
18 FSP_INIT_DONE_PPI gFspInitDonePpi
= {
19 FspInitDoneGetFspHobList
23 Return Hob list produced by FSP.
25 @param[in] PeiServices The pointer to the PEI Services Table.
26 @param[in] This The pointer to this instance of this PPI.
27 @param[out] FspHobList The pointer to Hob list produced by FSP.
29 @return EFI_SUCCESS FReturn Hob list produced by FSP successfully.
33 FspInitDoneGetFspHobList (
34 IN CONST EFI_PEI_SERVICES
**PeiServices
,
35 IN FSP_INIT_DONE_PPI
*This
,
39 VOID
*TopOfTemporaryRamPpi
;
42 Status
= (*PeiServices
)->LocatePpi (
44 &gTopOfTemporaryRamPpiGuid
,
47 (VOID
**) &TopOfTemporaryRamPpi
49 if (EFI_ERROR (Status
)) {
53 *FspHobList
= (VOID
*)(UINTN
)(*(UINT32
*)((UINTN
)TopOfTemporaryRamPpi
- sizeof(UINT32
)));