3 Copyright (c) 2006, 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 Windows NT environment.
25 // The package level header files this module uses
28 #include <WinNtPeim.h>
30 // The protocols, PPI and GUID defintions for this module
32 #include <Protocol/WinNtThunk.h>
33 #include <Ppi/NtThunk.h>
35 // The Library classes this module consumes
37 #include <Library/DebugLib.h>
38 #include <Library/PeimEntryPoint.h>
39 #include <Library/HobLib.h>
43 PeimInitializeWinNtThunkPPIToProtocolPeim (
44 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
45 IN EFI_PEI_SERVICES
**PeiServices
51 Perform a call-back into the SEC simulator to get NT Stuff
55 PeiServices - General purpose services available to every PEIM.
62 // TODO: FfsHeader - add argument and description to function comment
65 EFI_PEI_PPI_DESCRIPTOR
*PpiDescriptor
;
66 PEI_NT_THUNK_PPI
*PeiNtService
;
69 DEBUG ((EFI_D_ERROR
, "NT 32 WinNT Stuff PEIM Loaded\n"));
71 Status
= (**PeiServices
).LocatePpi (
73 &gPeiNtThunkPpiGuid
, // GUID
75 &PpiDescriptor
, // EFI_PEI_PPI_DESCRIPTOR
78 ASSERT_EFI_ERROR (Status
);
80 Ptr
= PeiNtService
->NtThunk ();
83 &gEfiWinNtThunkProtocolGuid
, // Guid
85 sizeof (VOID
*) // Sizeof Buffer