1. Rename PeiCoreLib to PeiServicesLib and rename all the interfaces from PeiCoreXXX() to PeiServicesXXX().
2. Remove PostCode interfaces from ReportStatusCodeLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@441 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -72,7 +72,7 @@ Returns:
|
||||
//
|
||||
// Check if the PPI is installed.
|
||||
//
|
||||
Status = PeiCoreLocatePpi(
|
||||
Status = PeiServicesLocatePpi(
|
||||
&PpiGuid, // GUID
|
||||
0, // INSTANCE
|
||||
NULL, // EFI_PEI_PPI_DESCRIPTOR
|
||||
|
@@ -230,7 +230,7 @@ Returns:
|
||||
// anymore FVs, then exit the PEIM search loop.
|
||||
//
|
||||
if (DispatchData->FindFv == NULL) {
|
||||
Status = PeiCoreLocatePpi (
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiFindFvPpiGuid,
|
||||
0,
|
||||
NULL,
|
||||
@@ -484,7 +484,7 @@ Returns:
|
||||
INT8 *DepexData;
|
||||
BOOLEAN Runnable;
|
||||
|
||||
Status = PeiCoreFfsFindSectionData (
|
||||
Status = PeiServicesFfsFindSectionData (
|
||||
EFI_SECTION_PEI_DEPEX,
|
||||
CurrentPeimAddress,
|
||||
(VOID **)&DepexData
|
||||
|
@@ -451,7 +451,7 @@ Returns:
|
||||
// Locate all instances of FindFV
|
||||
// Alternately, could use FV HOBs, but the PPI is cleaner
|
||||
//
|
||||
Status = PeiCoreLocatePpi (
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiFindFvPpiGuid,
|
||||
0,
|
||||
NULL,
|
||||
|
@@ -65,7 +65,7 @@ Returns:
|
||||
//
|
||||
// Try to find a PE32 section.
|
||||
//
|
||||
Status = PeiCoreFfsFindSectionData (
|
||||
Status = PeiServicesFfsFindSectionData (
|
||||
EFI_SECTION_PE32,
|
||||
PeimFileHeader,
|
||||
&Pe32Data
|
||||
@@ -74,7 +74,7 @@ Returns:
|
||||
// If we didn't find a PE32 section, try to find a TE section.
|
||||
//
|
||||
if (EFI_ERROR (Status)) {
|
||||
Status = PeiCoreFfsFindSectionData (
|
||||
Status = PeiServicesFfsFindSectionData (
|
||||
EFI_SECTION_TE,
|
||||
PeimFileHeader,
|
||||
(VOID **) &TEImageHeader
|
||||
@@ -84,7 +84,7 @@ Returns:
|
||||
// There was not a PE32 or a TE section, so assume that it's a Compressed section
|
||||
// and use the LoadFile
|
||||
//
|
||||
Status = PeiCoreLocatePpi (
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiPeiFvFileLoaderPpiGuid,
|
||||
0,
|
||||
NULL,
|
||||
|
@@ -306,7 +306,7 @@ Returns:
|
||||
// it should use AllocatePages service instead.
|
||||
//
|
||||
ASSERT (Size < 0x10000 - sizeof (EFI_HOB_MEMORY_POOL));
|
||||
Status = PeiCoreCreateHob (
|
||||
Status = PeiServicesCreateHob (
|
||||
EFI_HOB_TYPE_PEI_MEMORY_POOL,
|
||||
(UINT16)(sizeof (EFI_HOB_MEMORY_POOL) + Size),
|
||||
(VOID **)&Hob
|
||||
|
@@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
<Library>BaseLib</Library>
|
||||
<Library>BaseMemoryLib</Library>
|
||||
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>
|
||||
<Library>PeiCoreLib</Library>
|
||||
<Library>PeiServicesLib</Library>
|
||||
<Library>PeiHobLib</Library>
|
||||
<Library>PeiReportStatusCodeLib</Library>
|
||||
<Library>BaseDebugLibReportStatusCode</Library>
|
||||
|
@@ -37,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">PerformanceLib</LibraryClass>
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">PeCoffGetEntryPointLib</LibraryClass>
|
||||
<LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>
|
||||
|
@@ -179,7 +179,7 @@ Returns:
|
||||
// Alert any listeners that there is permanent memory available
|
||||
//
|
||||
PERF_START (NULL,"DisMem", NULL, 0);
|
||||
Status = PeiCoreInstallPpi (&mMemoryDiscoveredPpi);
|
||||
Status = PeiServicesInstallPpi (&mMemoryDiscoveredPpi);
|
||||
PERF_END (NULL,"DisMem", NULL, 0);
|
||||
|
||||
} else {
|
||||
@@ -201,7 +201,7 @@ Returns:
|
||||
// If SEC provided any PPI services to PEI, install them.
|
||||
//
|
||||
if (PeiStartupDescriptor->DispatchTable != NULL) {
|
||||
Status = PeiCoreInstallPpi (PeiStartupDescriptor->DispatchTable);
|
||||
Status = PeiServicesInstallPpi (PeiStartupDescriptor->DispatchTable);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
}
|
||||
@@ -220,7 +220,7 @@ Returns:
|
||||
|
||||
PERF_END (NULL, "PostMem", NULL, 0);
|
||||
|
||||
Status = PeiCoreLocatePpi (
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiDxeIplPpiGuid,
|
||||
0,
|
||||
NULL,
|
||||
|
@@ -50,7 +50,7 @@ Returns:
|
||||
EFI_STATUS Status;
|
||||
EFI_PEI_RESET_PPI *ResetPpi;
|
||||
|
||||
Status = PeiCoreLocatePpi (
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiPeiResetPpiGuid,
|
||||
0,
|
||||
NULL,
|
||||
|
@@ -58,7 +58,7 @@ Returns:
|
||||
--*/
|
||||
{
|
||||
if (OldCoreData == NULL) {
|
||||
PeiCoreNotifyPpi (&mNotifyList);
|
||||
PeiServicesNotifyPpi (&mNotifyList);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@@ -67,7 +67,7 @@ Returns:
|
||||
//
|
||||
//Locate StatusCode Ppi.
|
||||
//
|
||||
Status = PeiCoreLocatePpi (
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiPeiStatusCodePpiGuid,
|
||||
0,
|
||||
NULL,
|
||||
|
Reference in New Issue
Block a user