]> git.proxmox.com Git - mirror_edk2.git/blame - DuetPkg/DxeIpl/PpisNeededByDxeCore.c
UefiCpuPkg/PiSmmCpuDxeSmm: patch "gSmbase" with PatchInstructionX86()
[mirror_edk2.git] / DuetPkg / DxeIpl / PpisNeededByDxeCore.c
CommitLineData
18b84857 1/** @file\r
ca162103 2\r
b68b78e6 3Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
b1f700a8 4This program and the accompanying materials \r
ca162103 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 PpisNeededByDxeCore.c\r
14\r
15Abstract:\r
16 \r
17Revision 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
25EFI_STATUS\r
26EFIAPI\r
27PreparePpisNeededByDxeCore (\r
28 IN HOB_TEMPLATE *Hob\r
29 )\r
30/*++\r
31\r
32Routine 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
41Arguments:\r
42\r
43 HobStart - Pointer to the beginning of the HOB List from PEI\r
44\r
45Returns:\r
46\r
47 This function should after it has add it's HOBs\r
48\r
49--*/\r
50{\r
ca162103 51 EFI_REPORT_STATUS_CODE ReportStatusCode;\r
52\r
ca162103 53 InstallSerialStatusCode (&ReportStatusCode);\r
d555d90f 54 Hob->SerialStatusCode.Interface = (EFI_PHYSICAL_ADDRESS) (UINTN) ReportStatusCode;\r
ca162103 55\r
56 return EFI_SUCCESS;\r
57}\r
58\r
59\r