]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/Nt32PeCoffLoaderLib/Nt32PeCoffLoader.c
Check in following modules,
[mirror_edk2.git] / Nt32Pkg / Library / Nt32PeCoffLoaderLib / Nt32PeCoffLoader.c
1 /*++
2
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
8
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.
11
12 Module Name:
13
14 TianoPeCoffLoader.c
15
16 Abstract:
17
18 Wrap the Base PE/COFF loader with the PE COFF Protocol
19
20
21 --*/
22
23
24
25 //
26 // Include common header file for this module.
27 //
28 #include "CommonHeader.h"
29
30 EFI_PEI_PE_COFF_LOADER_PROTOCOL *mPeiEfiPeiPeCoffLoader;
31
32 EFI_STATUS
33 EFIAPI
34 PeCoffLoaderConstructor (
35 IN EFI_FFS_FILE_HEADER *FfsHeader,
36 IN EFI_PEI_SERVICES **PeiServices
37 )
38 {
39 EFI_STATUS Status;
40
41 Status = (*PeiServices)->LocatePpi (
42 PeiServices,
43 &gEfiPeiPeCoffLoaderGuid,
44 0,
45 NULL,
46 &mPeiEfiPeiPeCoffLoader
47 );
48 return Status;
49 }
50
51 EFI_PEI_PE_COFF_LOADER_PROTOCOL *
52 EFIAPI
53 GetPeCoffLoaderProtocol (
54 )
55 {
56 return mPeiEfiPeiPeCoffLoader;
57 }