Copyright (c) 2006, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
Copyright (c) 2006, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
&gEfiPeiMemoryDiscoveredPpiGuid,\r
NULL\r
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
&gEfiPeiMemoryDiscoveredPpiGuid,\r
NULL\r
\r
The entry routine to Pei Core, invoked by PeiMain during transition\r
from SEC to PEI. After switching stack in the PEI core, it will restart\r
with the old core data.\r
\r
\r
The entry routine to Pei Core, invoked by PeiMain during transition\r
from SEC to PEI. After switching stack in the PEI core, it will restart\r
with the old core data.\r
\r
An empty PPI list consists of a single descriptor with the end-tag\r
EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST. As part of its initialization\r
phase, the PEI Foundation will add these SEC-hosted PPIs to its PPI database such\r
that both the PEI Foundation and any modules can leverage the associated service\r
calls and/or code in these early PPIs\r
An empty PPI list consists of a single descriptor with the end-tag\r
EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST. As part of its initialization\r
phase, the PEI Foundation will add these SEC-hosted PPIs to its PPI database such\r
that both the PEI Foundation and any modules can leverage the associated service\r
calls and/or code in these early PPIs\r
- This function never returns\r
- EFI_NOT_FOUND - Never reach\r
-\r
---*/\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiCore (\r
+ IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,\r
+ IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList,\r
+ IN VOID *Data\r
+ )\r
CpuIo = (VOID*)PrivateData.ServiceTableShadow.CpuIo;\r
PciCfg = (VOID*)PrivateData.ServiceTableShadow.PciCfg;\r
\r
CpuIo = (VOID*)PrivateData.ServiceTableShadow.CpuIo;\r
PciCfg = (VOID*)PrivateData.ServiceTableShadow.PciCfg;\r
\r
\r
PrivateData.ServiceTableShadow.CpuIo = CpuIo;\r
PrivateData.ServiceTableShadow.PciCfg = PciCfg;\r
} else {\r
ZeroMem (&PrivateData, sizeof (PEI_CORE_INSTANCE));\r
PrivateData.Signature = PEI_CORE_HANDLE_SIGNATURE;\r
\r
PrivateData.ServiceTableShadow.CpuIo = CpuIo;\r
PrivateData.ServiceTableShadow.PciCfg = PciCfg;\r
} else {\r
ZeroMem (&PrivateData, sizeof (PEI_CORE_INSTANCE));\r
PrivateData.Signature = PEI_CORE_HANDLE_SIGNATURE;\r