]>
Commit | Line | Data |
---|---|---|
18b84857 | 1 | /** @file\r |
ca162103 | 2 | \r |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | PpisNeededByDxeCore.c\r | |
14 | \r | |
15 | Abstract:\r | |
16 | \r | |
17 | Revision History:\r | |
18 | \r | |
18b84857 | 19 | **/\r |
ca162103 | 20 | \r |
21 | #include "PpisNeededByDxeCore.h"\r | |
22 | #include "HobGeneration.h"\r | |
23 | #include "SerialStatusCode.h"\r | |
24 | \r | |
25 | EFI_STATUS\r | |
26 | EFIAPI\r | |
27 | PreparePpisNeededByDxeCore (\r | |
28 | IN HOB_TEMPLATE *Hob\r | |
29 | )\r | |
30 | /*++\r | |
31 | \r | |
32 | Routine Description:\r | |
33 | \r | |
34 | This routine adds the PPI/Protocol Hobs that are consumed by the DXE Core.\r | |
35 | Normally these come from PEI, but since our PEI was 32-bit we need an\r | |
36 | alternate source. That is this driver.\r | |
37 | \r | |
38 | This driver does not consume PEI or DXE services and thus updates the \r | |
39 | Phit (HOB list) directly\r | |
40 | \r | |
41 | Arguments:\r | |
42 | \r | |
43 | HobStart - Pointer to the beginning of the HOB List from PEI\r | |
44 | \r | |
45 | Returns:\r | |
46 | \r | |
47 | This function should after it has add it's HOBs\r | |
48 | \r | |
49 | --*/\r | |
50 | {\r | |
51 | //EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeCoffLoader;\r | |
52 | //EFI_DECOMPRESS_PROTOCOL *EfiDecompress;\r | |
53 | //EFI_TIANO_DECOMPRESS_PROTOCOL *TianoDecompress;\r | |
54 | EFI_REPORT_STATUS_CODE ReportStatusCode;\r | |
55 | \r | |
56 | //InstallEfiPeiFlushInstructionCache (&FlushInstructionCache);\r | |
57 | //Hob->FlushInstructionCache.Interface = FlushInstructionCache;\r | |
58 | \r | |
59 | // R9 do not need this protocol.\r | |
60 | // InstallEfiPeiTransferControl (&TransferControl);\r | |
61 | // Hob->TransferControl.Interface = TransferControl;\r | |
62 | \r | |
63 | //InstallEfiPeiPeCoffLoader (NULL, &PeCoffLoader, NULL);\r | |
64 | //Hob->PeCoffLoader.Interface = PeCoffLoader;\r | |
65 | \r | |
66 | //InstallEfiDecompress (&EfiDecompress);\r | |
67 | //Hob->EfiDecompress.Interface = EfiDecompress;\r | |
68 | \r | |
69 | //InstallTianoDecompress (&TianoDecompress);\r | |
70 | //Hob->TianoDecompress.Interface = TianoDecompress;\r | |
71 | \r | |
72 | InstallSerialStatusCode (&ReportStatusCode);\r | |
73 | Hob->SerialStatusCode.Interface = (VOID *)(UINTN)ReportStatusCode;\r | |
74 | \r | |
75 | return EFI_SUCCESS;\r | |
76 | }\r | |
77 | \r | |
78 | \r |