]> git.proxmox.com Git - mirror_edk2.git/blob - DuetPkg/DxeIpl/PpisNeededByDxeCore.c
Initialize DuetPkg ...
[mirror_edk2.git] / DuetPkg / DxeIpl / PpisNeededByDxeCore.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 PpisNeededByDxeCore.c
14
15 Abstract:
16
17 Revision History:
18
19 --*/
20
21 #include "PpisNeededByDxeCore.h"
22 #include "HobGeneration.h"
23 #include "SerialStatusCode.h"
24
25 EFI_STATUS
26 EFIAPI
27 PreparePpisNeededByDxeCore (
28 IN HOB_TEMPLATE *Hob
29 )
30 /*++
31
32 Routine Description:
33
34 This routine adds the PPI/Protocol Hobs that are consumed by the DXE Core.
35 Normally these come from PEI, but since our PEI was 32-bit we need an
36 alternate source. That is this driver.
37
38 This driver does not consume PEI or DXE services and thus updates the
39 Phit (HOB list) directly
40
41 Arguments:
42
43 HobStart - Pointer to the beginning of the HOB List from PEI
44
45 Returns:
46
47 This function should after it has add it's HOBs
48
49 --*/
50 {
51 //EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeCoffLoader;
52 //EFI_DECOMPRESS_PROTOCOL *EfiDecompress;
53 //EFI_TIANO_DECOMPRESS_PROTOCOL *TianoDecompress;
54 EFI_REPORT_STATUS_CODE ReportStatusCode;
55
56 //InstallEfiPeiFlushInstructionCache (&FlushInstructionCache);
57 //Hob->FlushInstructionCache.Interface = FlushInstructionCache;
58
59 // R9 do not need this protocol.
60 // InstallEfiPeiTransferControl (&TransferControl);
61 // Hob->TransferControl.Interface = TransferControl;
62
63 //InstallEfiPeiPeCoffLoader (NULL, &PeCoffLoader, NULL);
64 //Hob->PeCoffLoader.Interface = PeCoffLoader;
65
66 //InstallEfiDecompress (&EfiDecompress);
67 //Hob->EfiDecompress.Interface = EfiDecompress;
68
69 //InstallTianoDecompress (&TianoDecompress);
70 //Hob->TianoDecompress.Interface = TianoDecompress;
71
72 InstallSerialStatusCode (&ReportStatusCode);
73 Hob->SerialStatusCode.Interface = (VOID *)(UINTN)ReportStatusCode;
74
75 return EFI_SUCCESS;
76 }
77
78