3 Copyright (c) 2006 - 2008, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Tiano PEIM to abstract construction of firmware volume in a Unix environment.
25 #include <Ppi/UnixThunk.h>
26 #include <Library/DebugLib.h>
27 #include <Library/PeimEntryPoint.h>
28 #include <Library/HobLib.h>
29 #include <Library/PeiServicesLib.h>
30 #include <Library/PeiServicesTablePointerLib.h>
34 PeimInitializeUnixStuff (
35 IN EFI_PEI_FILE_HANDLE FileHandle
,
36 IN CONST EFI_PEI_SERVICES
**PeiServices
42 Perform a call-back into the SEC simulator to get Unix Stuff
46 PeiServices - General purpose services available to every PEIM.
53 // TODO: FfsHeader - add argument and description to function comment
56 EFI_PEI_PPI_DESCRIPTOR
*PpiDescriptor
;
57 PEI_UNIX_THUNK_PPI
*PeiUnixService
;
60 DEBUG ((EFI_D_ERROR
, "Unix Stuff PEIM Loaded\n"));
62 Status
= (**PeiServices
).LocatePpi (
64 &gPeiUnixThunkPpiGuid
, // GUID
66 &PpiDescriptor
, // EFI_PEI_PPI_DESCRIPTOR
67 (VOID
**)&PeiUnixService
// PPI
69 ASSERT_EFI_ERROR (Status
);
71 Ptr
= PeiUnixService
->UnixThunk ();
74 &gEfiUnixThunkProtocolGuid
, // Guid
76 sizeof (VOID
*) // Sizeof Buffer