]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Rename PeiCoreLib to PeiServicesLib and rename all the interfaces from PeiCoreXXX...
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 Jun 2006 03:36:57 +0000 (03:36 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 Jun 2006 03:36:57 +0000 (03:36 +0000)
2. Remove PostCode interfaces from ReportStatusCodeLib

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@441 6f19259b-4bc3-4df7-8a09-765794883524

65 files changed:
EdkModulePkg/Core/DxeIplPeim/DxeIpl.mbd
EdkModulePkg/Core/DxeIplPeim/DxeIpl.msa
EdkModulePkg/Core/DxeIplPeim/DxeIplX64.mbd
EdkModulePkg/Core/DxeIplPeim/DxeIplX64.msa
EdkModulePkg/Core/DxeIplPeim/DxeLoad.c
EdkModulePkg/Core/DxeIplPeim/DxeLoadX64.c
EdkModulePkg/Core/DxeIplPeim/Ipf/DxeLoadFunc.c
EdkModulePkg/Core/Pei/Dependency/dependency.c
EdkModulePkg/Core/Pei/Dispatcher/Dispatcher.c
EdkModulePkg/Core/Pei/FwVol/FwVol.c
EdkModulePkg/Core/Pei/Image/Image.c
EdkModulePkg/Core/Pei/Memory/MemoryServices.c
EdkModulePkg/Core/Pei/PeiMain.mbd
EdkModulePkg/Core/Pei/PeiMain.msa
EdkModulePkg/Core/Pei/PeiMain/PeiMain.c
EdkModulePkg/Core/Pei/Reset/Reset.c
EdkModulePkg/Core/Pei/Security/Security.c
EdkModulePkg/Core/Pei/StatusCode/StatusCode.c
EdkModulePkg/Library/EdkMemoryStatusCodeLib/EdkMemoryStatusCodeLib.msa
EdkModulePkg/Universal/GenericMemoryTest/Pei/BaseMemoryTest.mbd
EdkModulePkg/Universal/GenericMemoryTest/Pei/BaseMemoryTest.msa
EdkModulePkg/Universal/PCD/Pei/Pcd.c
EdkModulePkg/Universal/PCD/Pei/Pcd.mbd
EdkModulePkg/Universal/PCD/Pei/Pcd.msa
EdkModulePkg/Universal/PCD/Pei/Service.c
EdkModulePkg/Universal/PCD/Test/PeiPcdTest.mbd
EdkModulePkg/Universal/Variable/Pei/Variable.mbd
EdkModulePkg/Universal/Variable/Pei/Variable.msa
EdkNt32Pkg/Library/EdkNt32PeiPeCoffGetEntryPointLib/EdkNt32PeiPeCoffGetEntryPointLib.msa
EdkNt32Pkg/Library/EdkNt32PeiPeCoffGetEntryPointLib/PeCoffGetEntryPoint.c
EdkNt32Pkg/Pei/Autoscan/WinNtAutoScan.mbd
EdkNt32Pkg/Pei/Autoscan/WinNtAutoScan.msa
EdkNt32Pkg/Pei/BootMode/BootMode.mbd
EdkNt32Pkg/Pei/BootMode/BootMode.msa
EdkNt32Pkg/Pei/FirmwareVolume/WinNtFwh.mbd
EdkNt32Pkg/Pei/FirmwareVolume/WinNtFwh.msa
EdkNt32Pkg/Pei/FlashMap/FlashMap.c
EdkNt32Pkg/Pei/FlashMap/FlashMap.mbd
EdkNt32Pkg/Pei/FlashMap/FlashMap.msa
EdkNt32Pkg/Pei/MonoStatusCode/Nt32/MonoStatusCode.mbd
EdkNt32Pkg/Pei/PcdEmulator/PcdEmulator.c
EdkNt32Pkg/Pei/PcdEmulator/PcdEmulator.mbd
EdkNt32Pkg/Pei/PcdEmulator/PcdEmulator.msa
EdkNt32Pkg/Pei/WinNtStuff/WinNtStuff.mbd
EdkNt32Pkg/Pei/WinNtStuff/WinNtStuff.msa
MdePkg/Include/Library/PeiCoreLib.h [deleted file]
MdePkg/Include/Library/PeiServicesLib.h [new file with mode: 0644]
MdePkg/Include/Library/ReportStatusCodeLib.h
MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.msa
MdePkg/Library/BaseReportStatusCodeLibNull/PostCode.c [deleted file]
MdePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.msa
MdePkg/Library/DxeReportStatusCodeLib/PostCode.c [deleted file]
MdePkg/Library/PeiHobLib/HobLib.c
MdePkg/Library/PeiHobLib/PeiHobLib.msa
MdePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.msa
MdePkg/Library/PeiReportStatusCodeLib/PostCode.c [deleted file]
MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.c
MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.msa
MdePkg/Library/PeiServicesLib/PeiServicesLib.c [new file with mode: 0644]
MdePkg/Library/PeiServicesLib/PeiServicesLib.mbd [new file with mode: 0644]
MdePkg/Library/PeiServicesLib/PeiServicesLib.msa [new file with mode: 0644]
MdePkg/Library/PeiServicesLib/build.xml [new file with mode: 0644]
MdePkg/MdePkg-All-Archs.fpd
MdePkg/MdePkg.fpd
MdePkg/MdePkg.spd

index 3b5ae36e0d87e4d1d2d997bb0f13d64e6fc3b460..36219e68c384277f8740f2e603fb4e349c267dc3 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>
     <Library>PeimEntryPoint</Library>
     <Library>PeiMemoryLib</Library>
-    <Library>PeiCoreLib</Library>
+    <Library>PeiServicesLib</Library>
     <Library OverrideID="4444">PeiServicesTablePointerLib</Library>
     <Library>PeiHobLib</Library>
     <Library>BaseCacheMaintenanceLib</Library>
index 318df3574b4773d0b7010ab58453678d517a30f6..ade4d013a6bd80f421876a518a2cb35c054c7f46 100644 (file)
@@ -37,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PerformanceLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">CacheMaintenanceLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">EdkPeCoffLoaderLib</LibraryClass>\r
index ef039fc800d9c9e5eb3e7eb4a35a2f6c5261789e..460044147c0ffaefbf8e4275be07d623e190be35 100644 (file)
@@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>
     <Library>PeimEntryPoint</Library>
     <Library>PeiMemoryLib</Library>
-    <Library>PeiCoreLib</Library>
+    <Library>PeiServicesLib</Library>
     <Library OverrideID="4444">PeiServicesTablePointerLib</Library>
     <Library>PeiHobLib</Library>
     <Library>BaseCacheMaintenanceLib</Library>
index 68a2a984c6a70658240e7d6284c21a3bb1d9a759..cd6c30ab604a3e06370beb6a2dc19c487091b1dd 100644 (file)
@@ -36,7 +36,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">CacheMaintenanceLib</LibraryClass>
     <LibraryClass Usage="ALWAYS_CONSUMED">EdkPeCoffLoaderLib</LibraryClass>
index a181095813e4fbbc38fe90b33a03e8ac868b9769..78008412759d21419033611e5ad08e952a8ddd66 100644 (file)
@@ -119,11 +119,11 @@ Returns:
   EFI_PEI_PE_COFF_LOADER_PROTOCOL           *PeiEfiPeiPeCoffLoader;\r
   EFI_BOOT_MODE                             BootMode;\r
 \r
-  Status = PeiCoreGetBootMode (&BootMode);\r
+  Status = PeiServicesGetBootMode (&BootMode);\r
 \r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  Status = PeiCoreLocatePpi (\r
+  Status = PeiServicesLocatePpi (\r
              &gPeiInMemoryGuid,\r
              0,\r
              NULL,\r
@@ -154,7 +154,7 @@ Returns:
     //\r
     // Install LoadFile PPI\r
     //\r
-    Status = PeiCoreInstallPpi (&mPpiLoadFile);\r
+    Status = PeiServicesInstallPpi (&mPpiLoadFile);\r
 \r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
@@ -163,7 +163,7 @@ Returns:
     //\r
     // Install DxeIpl PPI\r
     //\r
-    PeiCoreInstallPpi (&mPpiList);\r
+    PeiServicesInstallPpi (&mPpiList);\r
 \r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
@@ -223,10 +223,10 @@ Returns:
   //\r
   // if in S3 Resume, restore configure\r
   //\r
-  Status = PeiCoreGetBootMode (&BootMode);\r
+  Status = PeiServicesGetBootMode (&BootMode);\r
 \r
   if (!EFI_ERROR (Status) && (BootMode == BOOT_ON_S3_RESUME)) {\r
-    Status = PeiCoreLocatePpi (\r
+    Status = PeiServicesLocatePpi (\r
                &gEfiPeiS3ResumePpiGuid,\r
                0,\r
                NULL,\r
@@ -307,11 +307,11 @@ Returns:
   //\r
   // See if we are in crisis recovery\r
   //\r
-  Status = PeiCoreGetBootMode (&BootMode);\r
+  Status = PeiServicesGetBootMode (&BootMode);\r
 \r
   if (!EFI_ERROR (Status) && (BootMode == BOOT_IN_RECOVERY_MODE)) {\r
 \r
-    Status = PeiCoreLocatePpi (\r
+    Status = PeiServicesLocatePpi (\r
                &gEfiPeiRecoveryModulePpiGuid,\r
                0,\r
                NULL,\r
@@ -373,7 +373,7 @@ Returns:
   //\r
 //  PERF_END (PeiServices, L"DxeIpl", NULL, 0);\r
 \r
-  Status = PeiCoreInstallPpi (&mPpiSignal);\r
+  Status = PeiServicesInstallPpi (&mPpiSignal);\r
 \r
   ASSERT_EFI_ERROR (Status);\r
 \r
@@ -464,7 +464,7 @@ Returns:
   Hob.Raw = GetHobList ();\r
   while ((Hob.Raw = GetNextHob (EFI_HOB_TYPE_FV, Hob.Raw)) != NULL) {\r
     FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) (Hob.FirmwareVolume->BaseAddress);\r
-    Status = PeiCoreFfsFindNextFile (\r
+    Status = PeiServicesFfsFindNextFile (\r
                Type,\r
                FwVolHeader,\r
                &FfsFileHeader\r
@@ -620,7 +620,7 @@ Returns:
     //\r
     // Install PeiInMemory to indicate the Dxeipl is shadowed\r
     //\r
-    Status = PeiCoreInstallPpi (&mPpiPeiInMemory);\r
+    Status = PeiServicesInstallPpi (&mPpiPeiInMemory);\r
 \r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
@@ -757,7 +757,7 @@ Returns:
   EFI_FIRMWARE_VOLUME_HEADER      *FvHeader;\r
   EFI_COMPRESSION_SECTION         *CompressionSection;\r
 \r
-  Status = PeiCoreFfsFindSectionData (\r
+  Status = PeiServicesFfsFindSectionData (\r
              EFI_SECTION_COMPRESSION,\r
              FfsFileHeader,\r
              &SectionData\r
@@ -795,7 +795,7 @@ Returns:
         //\r
         AuthenticationStatus = 0;\r
 \r
-        Status = PeiCoreLocatePpi (\r
+        Status = PeiServicesLocatePpi (\r
                    &gEfiPeiSectionExtractionPpiGuid,\r
                    0,\r
                    NULL,\r
@@ -828,7 +828,7 @@ Returns:
         // If not ask the Security PPI, if exists, for disposition\r
         //\r
         //\r
-        Status = PeiCoreLocatePpi (\r
+        Status = PeiServicesLocatePpi (\r
                    &gEfiPeiSecurityPpiGuid,\r
                    0,\r
                    NULL,\r
@@ -940,7 +940,7 @@ Returns:
           if (FvHeader->Signature == EFI_FVH_SIGNATURE) {\r
             FfsFileHeader = NULL;\r
             BuildFvHob ((EFI_PHYSICAL_ADDRESS) (UINTN) FvHeader, FvHeader->FvLength);\r
-            Status = PeiCoreFfsFindNextFile (\r
+            Status = PeiServicesFfsFindNextFile (\r
                        EFI_FV_FILETYPE_DXE_CORE,\r
                        FvHeader,\r
                        &FfsFileHeader\r
@@ -986,14 +986,14 @@ Returns:
     //\r
   } else {\r
 \r
-    Status = PeiCoreFfsFindSectionData (\r
+    Status = PeiServicesFfsFindSectionData (\r
                EFI_SECTION_PE32,\r
                FfsFileHeader,\r
                &SectionData\r
                );\r
 \r
     if (EFI_ERROR (Status)) {\r
-      Status = PeiCoreFfsFindSectionData (\r
+      Status = PeiServicesFfsFindSectionData (\r
                  EFI_SECTION_TE,\r
                  FfsFileHeader,\r
                  &SectionData\r
index 43b755423b5a1ace09e4faa4694bbb03c40e71f9..451d239eb6196d4da900b62a68c781b943c373f8 100644 (file)
@@ -130,11 +130,11 @@ Returns:
   EFI_PEI_PE_COFF_LOADER_PROTOCOL           *PeiEfiPeiPeCoffLoader;\r
   EFI_BOOT_MODE                             BootMode;\r
 \r
-  Status = PeiCoreGetBootMode (&BootMode);\r
+  Status = PeiServicesGetBootMode (&BootMode);\r
 \r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  Status = PeiCoreLocatePpi (\r
+  Status = PeiServicesLocatePpi (\r
              &gPeiInMemoryGuid,\r
              0,\r
              NULL,\r
@@ -165,7 +165,7 @@ Returns:
     //\r
     // Install LoadFile PPI\r
     //\r
-    Status = PeiCoreInstallPpi (&mPpiLoadFile);\r
+    Status = PeiServicesInstallPpi (&mPpiLoadFile);\r
 \r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
@@ -174,7 +174,7 @@ Returns:
     //\r
     // Install DxeIpl PPI\r
     //\r
-    PeiCoreInstallPpi (&mPpiList);\r
+    PeiServicesInstallPpi (&mPpiList);\r
 \r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
@@ -234,10 +234,10 @@ Returns:
   //\r
   // if in S3 Resume, restore configure\r
   //\r
-  Status = PeiCoreGetBootMode (&BootMode);\r
+  Status = PeiServicesGetBootMode (&BootMode);\r
 \r
   if (!EFI_ERROR (Status) && (BootMode == BOOT_ON_S3_RESUME)) {\r
-    Status = PeiCoreLocatePpi (\r
+    Status = PeiServicesLocatePpi (\r
                &gEfiPeiS3ResumePpiGuid,\r
                0,\r
                NULL,\r
@@ -270,7 +270,7 @@ Returns:
   //\r
   // Allocate 128KB for the Stack\r
   //\r
-  PeiCoreAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (STACK_SIZE), &BaseOfStack);\r
+  PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (STACK_SIZE), &BaseOfStack);\r
   ASSERT (BaseOfStack != 0);\r
 \r
   //\r
@@ -288,9 +288,9 @@ Returns:
   //\r
   // See if we are in crisis recovery\r
   //\r
-  Status = PeiCoreGetBootMode (&BootMode);\r
+  Status = PeiServicesGetBootMode (&BootMode);\r
   if (!EFI_ERROR (Status) && (BootMode == BOOT_IN_RECOVERY_MODE)) {\r
-    Status = PeiCoreLocatePpi (\r
+    Status = PeiServicesLocatePpi (\r
                &gEfiPeiRecoveryModulePpiGuid,\r
                0,\r
                NULL,\r
@@ -319,7 +319,7 @@ Returns:
   //\r
   // PEI_PERF_END (PeiServices, L"DxeIpl", NULL, 0);\r
 \r
-  Status = PeiCoreInstallPpi (&mPpiSignal);\r
+  Status = PeiServicesInstallPpi (&mPpiSignal);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   //\r
@@ -439,7 +439,7 @@ Returns:
   Hob.Raw = GetHobList ();\r
   while ((Hob.Raw = GetNextHob (EFI_HOB_TYPE_FV, Hob.Raw)) != NULL) {\r
     FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) (Hob.FirmwareVolume->BaseAddress);\r
-    Status = PeiCoreFfsFindNextFile (\r
+    Status = PeiServicesFfsFindNextFile (\r
                Type,\r
                FwVolHeader,\r
                &FfsFileHeader\r
@@ -512,7 +512,7 @@ Returns:
   //\r
   // Allocate Memory for the image\r
   //\r
-  PeiCoreAllocatePages (MemoryType, EFI_SIZE_TO_PAGES ((UINT32) ImageContext.ImageSize), &MemoryBuffer);\r
+  PeiServicesAllocatePages (MemoryType, EFI_SIZE_TO_PAGES ((UINT32) ImageContext.ImageSize), &MemoryBuffer);\r
   ImageContext.ImageAddress = MemoryBuffer;\r
   ASSERT (ImageContext.ImageAddress != 0);\r
 \r
@@ -604,7 +604,7 @@ Returns:
     //\r
     // Install PeiInMemory to indicate the Dxeipl is shadowed\r
     //\r
-    Status = PeiCoreInstallPpi (&mPpiPeiInMemory);\r
+    Status = PeiServicesInstallPpi (&mPpiPeiInMemory);\r
 \r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
@@ -737,7 +737,7 @@ Returns:
   EFI_FIRMWARE_VOLUME_HEADER      *FvHeader;\r
   EFI_COMPRESSION_SECTION         *CompressionSection;\r
 \r
-  Status = PeiCoreFfsFindSectionData (\r
+  Status = PeiServicesFfsFindSectionData (\r
              EFI_SECTION_COMPRESSION,\r
              FfsFileHeader,\r
              &SectionData\r
@@ -775,7 +775,7 @@ Returns:
         //\r
         AuthenticationStatus = 0;\r
 \r
-        Status = PeiCoreLocatePpi (\r
+        Status = PeiServicesLocatePpi (\r
                    &gEfiPeiSectionExtractionPpiGuid,\r
                    0,\r
                    NULL,\r
@@ -808,7 +808,7 @@ Returns:
         // If not ask the Security PPI, if exists, for disposition\r
         //\r
         //\r
-        Status = PeiCoreLocatePpi (\r
+        Status = PeiServicesLocatePpi (\r
                    &gEfiPeiSecurityPpiGuid,\r
                    0,\r
                    NULL,\r
@@ -920,7 +920,7 @@ Returns:
           if (FvHeader->Signature == EFI_FVH_SIGNATURE) {\r
             FfsFileHeader = NULL;\r
             BuildFvHob ((EFI_PHYSICAL_ADDRESS) (UINTN) FvHeader, FvHeader->FvLength);\r
-            Status = PeiCoreFfsFindNextFile (\r
+            Status = PeiServicesFfsFindNextFile (\r
                        EFI_FV_FILETYPE_DXE_CORE,\r
                        FvHeader,\r
                        &FfsFileHeader\r
@@ -966,14 +966,14 @@ Returns:
     //\r
   } else {\r
 \r
-    Status = PeiCoreFfsFindSectionData (\r
+    Status = PeiServicesFfsFindSectionData (\r
                EFI_SECTION_PE32,\r
                FfsFileHeader,\r
                &SectionData\r
                );\r
 \r
     if (EFI_ERROR (Status)) {\r
-      Status = PeiCoreFfsFindSectionData (\r
+      Status = PeiServicesFfsFindSectionData (\r
                  EFI_SECTION_TE,\r
                  FfsFileHeader,\r
                  &SectionData\r
index 95fb0937c541e4449d55aa8783db60f4ec9a49a9..bcf59f970a8a2bb1193bd71357e7bab44744eadf 100644 (file)
@@ -55,7 +55,7 @@ Returns:
   //\r
   // Allocate 16KB for the BspStore\r
   //\r
-  Status = PeiCoreAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (BSP_STORE_SIZE), BspStore);\r
+  Status = PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (BSP_STORE_SIZE), BspStore);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
index b893cbe6fc6da8c835d4bb25b9c449148947727c..0d9d797826896bd3390d9a8dbcf65eca36139009 100644 (file)
@@ -72,7 +72,7 @@ Returns:
   //\r
   // Check if the PPI is installed.\r
   //\r
-  Status = PeiCoreLocatePpi(\r
+  Status = PeiServicesLocatePpi(\r
              &PpiGuid,        // GUID\r
              0,               // INSTANCE\r
              NULL,            // EFI_PEI_PPI_DESCRIPTOR\r
index b4e09e3fcab9404e9dbf5dc595fb423c2cd4b86f..0bec576e6d9c8ba4a8ae6bd7cbcc3311342a238d 100644 (file)
@@ -230,7 +230,7 @@ Returns:
         // anymore FVs, then exit the PEIM search loop.\r
         //\r
         if (DispatchData->FindFv == NULL) {\r
-          Status = PeiCoreLocatePpi (\r
+          Status = PeiServicesLocatePpi (\r
                      &gEfiFindFvPpiGuid,\r
                      0,\r
                      NULL,\r
@@ -484,7 +484,7 @@ Returns:
   INT8        *DepexData;\r
   BOOLEAN     Runnable;\r
 \r
-  Status = PeiCoreFfsFindSectionData (\r
+  Status = PeiServicesFfsFindSectionData (\r
              EFI_SECTION_PEI_DEPEX,\r
              CurrentPeimAddress,\r
              (VOID **)&DepexData\r
index d034513bb0b151475c6a0d3eb22218ef3ebcad7c..d06590cd984a3d3ccb5a208bb686eaa69828d773 100644 (file)
@@ -451,7 +451,7 @@ Returns:
     // Locate all instances of FindFV\r
     // Alternately, could use FV HOBs, but the PPI is cleaner\r
     //\r
-    Status = PeiCoreLocatePpi (\r
+    Status = PeiServicesLocatePpi (\r
                &gEfiFindFvPpiGuid,\r
                0,\r
                NULL,\r
index 42ecc862fd8f803a5d9a9ae6d408b0a5a99227a7..8fd71976366866da68bab0ca0490f6313dc326cc 100644 (file)
@@ -65,7 +65,7 @@ Returns:
   //\r
   // Try to find a PE32 section.\r
   //\r
-  Status = PeiCoreFfsFindSectionData (\r
+  Status = PeiServicesFfsFindSectionData (\r
              EFI_SECTION_PE32,\r
              PeimFileHeader,\r
              &Pe32Data\r
@@ -74,7 +74,7 @@ Returns:
   // If we didn't find a PE32 section, try to find a TE section.\r
   //\r
   if (EFI_ERROR (Status)) {\r
-    Status = PeiCoreFfsFindSectionData (\r
+    Status = PeiServicesFfsFindSectionData (\r
                EFI_SECTION_TE,\r
                PeimFileHeader,\r
                (VOID **) &TEImageHeader\r
@@ -84,7 +84,7 @@ Returns:
       // There was not a PE32 or a TE section, so assume that it's a Compressed section\r
       // and use the LoadFile\r
       //\r
-      Status = PeiCoreLocatePpi (\r
+      Status = PeiServicesLocatePpi (\r
                 &gEfiPeiFvFileLoaderPpiGuid,\r
                 0,\r
                 NULL,\r
index eb99a8040db68771a1ed8df34685c3bb0c89413b..3da3e53185c660dc701218d75f809ef90288d35b 100644 (file)
@@ -306,7 +306,7 @@ Returns:
  // it should use AllocatePages service instead.\r
  //\r
  ASSERT (Size < 0x10000 - sizeof (EFI_HOB_MEMORY_POOL));\r
- Status = PeiCoreCreateHob (\r
+ Status = PeiServicesCreateHob (\r
              EFI_HOB_TYPE_PEI_MEMORY_POOL,\r
              (UINT16)(sizeof (EFI_HOB_MEMORY_POOL) + Size),\r
              (VOID **)&Hob\r
index 145a5443a0a7cf8ba9f4e35fa7357fb8091b0d84..4bf137aa9ff7c543c5d955d9adc0c3e53abff7be 100644 (file)
@@ -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>
index 1f5342e9f956fc1abab23831c59f1776e3e7a442..43c29de349e77adedfd62d766d3ebba261eda0b5 100644 (file)
@@ -37,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PerformanceLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeCoffGetEntryPointLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
index f27b0274f5366b8588361b160351e1b2881e650c..b6d57f96d5592498b122ffda76e4abb8b760d1e9 100644 (file)
@@ -179,7 +179,7 @@ Returns:
     // Alert any listeners that there is permanent memory available\r
     //\r
     PERF_START (NULL,"DisMem", NULL, 0);\r
-    Status = PeiCoreInstallPpi (&mMemoryDiscoveredPpi);\r
+    Status = PeiServicesInstallPpi (&mMemoryDiscoveredPpi);\r
     PERF_END (NULL,"DisMem", NULL, 0);\r
 \r
   } else {\r
@@ -201,7 +201,7 @@ Returns:
     // If SEC provided any PPI services to PEI, install them.\r
     //\r
     if (PeiStartupDescriptor->DispatchTable != NULL) {\r
-      Status = PeiCoreInstallPpi (PeiStartupDescriptor->DispatchTable);\r
+      Status = PeiServicesInstallPpi (PeiStartupDescriptor->DispatchTable);\r
       ASSERT_EFI_ERROR (Status);\r
     }\r
   }\r
@@ -220,7 +220,7 @@ Returns:
 \r
   PERF_END (NULL, "PostMem", NULL, 0);\r
 \r
-  Status = PeiCoreLocatePpi (\r
+  Status = PeiServicesLocatePpi (\r
              &gEfiDxeIplPpiGuid,\r
              0,\r
              NULL,\r
index 6bcb4ce31bd8b72b4c8bd6ad1e270376bc17f274..ef0ceb3b1962d645962093a3af75f6105a70e8f1 100644 (file)
@@ -50,7 +50,7 @@ Returns:
   EFI_STATUS        Status;\r
   EFI_PEI_RESET_PPI *ResetPpi;\r
 \r
-  Status = PeiCoreLocatePpi (\r
+  Status = PeiServicesLocatePpi (\r
              &gEfiPeiResetPpiGuid,         \r
              0,                         \r
              NULL,                      \r
index 5908928c7bf64017ac904ade0849c808c7dab112..0bc175a8566b70479a5378d4fc849cfb04fde824 100644 (file)
@@ -58,7 +58,7 @@ Returns:
 --*/\r
 {\r
   if (OldCoreData == NULL) {\r
-    PeiCoreNotifyPpi (&mNotifyList);\r
+    PeiServicesNotifyPpi (&mNotifyList);\r
   }\r
   return;\r
 }\r
index 496effa5e5968ce03fce0e9e489a8598e3d03ae8..b9316b6e9e1141fd53e1ccf42958078b692c0244 100644 (file)
@@ -67,7 +67,7 @@ Returns:
   //\r
   //Locate StatusCode Ppi.\r
   //\r
-  Status = PeiCoreLocatePpi (\r
+  Status = PeiServicesLocatePpi (\r
              &gEfiPeiStatusCodePpiGuid,         \r
              0,                         \r
              NULL,                      \r
index d402cbaa198ce3dc0e63f13ae5d240e5010db329..7d60671c908c1b4fef311007a30d6f1f88b3d0c5 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
index 59c52c97184bc3e151a5aa925715a6d9e4f30acc..ac15f7b7e0312aded05c330b58cb4589282b052b 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>BaseDebugLibReportStatusCode</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiMemoryLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>BaseLib</Library>\r
   </Libraries>\r
 </ModuleBuildDescription>\r
index 62ed7834ebabd6f989ea5d7fcb261833755333a7..2764fb36abf2e0d6c027cd5409b418e6fafd48e5 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <LibraryClassDefinitions>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
     <Filename>BaseMemoryTest.c</Filename>\r
index 52390e404c22969ce9c5e0ae816308fe44543aac..b41d3ed09b0a9332ab5338d39a870a5bec761893 100644 (file)
@@ -76,7 +76,7 @@ PcdPeimInit (
 \r
   BuildPcdDatabase ();\r
   \r
-  Status = PeiCoreInstallPpi (&mPpiPCD);\r
+  Status = PeiServicesInstallPpi (&mPpiPCD);\r
 \r
   ASSERT_EFI_ERROR (Status);\r
   \r
index 5defea7d7d16c81f7b9f6002190c40c585d79140..8509b16d73c4606d897e7799500f04635510f05c 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>BaseLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library OverrideID="4444">PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>BaseDebugLibReportStatusCode</Library>\r
index 60cd6449e7e028a374146940cc60395ddcf5749b..f08a2fa0729486c2bfcea6ff1a781ef1f57a918f 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PcdLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">MemoryAllocationLib</LibraryClass>\r
index 247ebadcd7559724e5af3e65e19e8613f67b1b89..2de061bdb061f1cf1bc0be11560e17dce50ec88d 100644 (file)
@@ -144,7 +144,7 @@ GetHiiVariable (
   VOID       *Buffer;\r
   EFI_PEI_READ_ONLY_VARIABLE_PPI *VariablePpi;\r
 \r
-  Status = PeiCoreLocatePpi (&gEfiPeiReadOnlyVariablePpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
+  Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariablePpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   Size = 0;\r
@@ -159,7 +159,7 @@ GetHiiVariable (
                             );\r
   ASSERT (Status == EFI_BUFFER_TOO_SMALL);\r
 \r
-  Status = PeiCoreAllocatePool (Size, &Buffer);\r
+  Status = PeiServicesAllocatePool (Size, &Buffer);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   Status = VariablePpi->PeiGetVariable (\r
index e6010619910af6ded26d7ce490901bbf335364e3..3265c3db6076225d6be5416d8261f38f07767ab8 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>BaseLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>BaseDebugLibReportStatusCode</Library>\r
     <Library>PeiMemoryLib</Library>\r
index df87f466dea93c6cb70a64cb89d7acf06d0ed24b..97bbde871a94e06967a7fa762c9357b92dc74fa6 100644 (file)
@@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>BaseDebugLibReportStatusCode</Library>
     <Library>BaseLib</Library>
     <Library>PeiMemoryLib</Library>
-    <Library>PeiCoreLib</Library>
+    <Library>PeiServicesLib</Library>
     <Library OverrideID="4444">PeiServicesTablePointerLib</Library>
     <Library>PeiHobLib</Library>
     <Library>PeimEntryPoint</Library>
index bf331250c4a19f49fb011ab245babce077de1320..27f8a84e2741685979b0411a7f621dbaf8e237f1 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <LibraryClassDefinitions>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
index 70d94bfd0e57fc26ef6fd74854e379dde4dd7e83..c98b001d16f61d3419d5bf1eed086a8f7a1b90cc 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </MsaLibHeader>\r
   <LibraryClassDefinitions>\r
     <LibraryClass Usage="ALWAYS_PRODUCED">PeCoffGetEntryPointLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
     <Filename>PeCoffGetEntryPoint.c</Filename>\r
index ed64158df7987ec9b20468a69e976b5de33b30d4..e2cfd352b2d03af186f43a5cc5e8642f48f3f32b 100644 (file)
@@ -54,7 +54,7 @@ Returns:
   UINT64                  ImageSize;\r
   EFI_PHYSICAL_ADDRESS    ImageEntryPoint;\r
 \r
-  Status = PeiCoreLocatePpi (\r
+  Status = PeiServicesLocatePpi (\r
              &gNtPeiLoadFilePpiGuid,\r
              0,\r
              &PpiDescriptor,\r
index c6a123ddf90068db67352c1a6d17657fc872db63..49bc8eb9b8de0d22626a134c5141e77762ac2188 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>PeiMemoryLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
index 887eaf6fc5e0912dec89baba5c4d070a5411e4ca..05781af25683e80662434d886117a2dd26e4fba6 100644 (file)
@@ -37,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
index 5dd1a6fe20644a77f7b1fef1e9ca345bf030112b..12d95b11473721ed767ecedf7fcb956b2e291a16 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>PeiMemoryLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
     <Library>BaseDebugLibReportStatusCode</Library>\r
index bbc56e6ed8d250e33ac6c404a059d0d66faa6e61..4c94945bdda016af865389058017622c77ec2c67 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
index 3c61664ecc778a03851311cfcb67bf3666dab99b..8a65521b483d77d2af0b7e9d4e86c244af6c87c0 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>PeiMemoryLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
index e70d4dd7dbc40890e4fc039b1b20b09150f762ee..b6cff5ec31c36d09cd3fc38f4202b6f767077164 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
index a8f7ba06adf9b4699cc0d8317b5353a2f03c380e..b459257285e7341fc2514d9d7e3596e7124d3c44 100644 (file)
@@ -136,14 +136,14 @@ Returns:
   //\r
   // Install FlashMap PPI\r
   //\r
-  Status = PeiCoreInstallPpi (&mPpiListFlashMap);\r
+  Status = PeiServicesInstallPpi (&mPpiListFlashMap);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
 \r
   //\r
   // Get the Fwh Information PPI\r
   //\r
-  Status = PeiCoreLocatePpi (\r
+  Status = PeiServicesLocatePpi (\r
             &gNtFwhPpiGuid, // GUID\r
             0,              // INSTANCE\r
             &PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR\r
@@ -249,7 +249,7 @@ GetAreaInfo (
   EFI_PEI_HOB_POINTERS          Hob;\r
   EFI_HOB_FLASH_MAP_ENTRY_TYPE  *FlashMapEntry;\r
 \r
-  Status = PeiCoreGetHobList (&Hob.Raw);\r
+  Status = PeiServicesGetHobList (&Hob.Raw);\r
   while (!END_OF_HOB_LIST (Hob)) {\r
     if (Hob.Header->HobType == EFI_HOB_TYPE_GUID_EXTENSION && CompareGuid (&Hob.Guid->Name, &gEfiFlashMapHobGuid)) {\r
       FlashMapEntry = (EFI_HOB_FLASH_MAP_ENTRY_TYPE *) Hob.Raw;\r
index 8c38ee9f591a728a81d14e15955208f7501bac12..351e86dffdd5249922d8d9eb6ef4c7732d589337 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>PeiMemoryLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
index f347ca45db7ff89418e163e49da295ed8fcdbc4f..672199920a872e9adecc4bc451b9dc8cbd26e39c 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
index f48b4c7f0e93500c7ba9f974a5259837a800b129..950b450647b92aa28e001faff7f2b1108ff939ac 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiHobLib</Library>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>EdkMemoryStatusCodeLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
     <ImageEntryPoint>_ModuleEntryPoint</ImageEntryPoint>\r
index 69261b952b1f2536c467e1a655ab6fc9e9f4842f..76399048fdae02894cfb3602f0d9a308200cbac0 100644 (file)
@@ -621,7 +621,7 @@ PeimPcdEmulatorEntry (
   //\r
   // Install PCD service PPI\r
   //\r
-  Status = PeiCoreInstallPpi (&mPpiPCD);\r
+  Status = PeiServicesInstallPpi (&mPpiPCD);\r
 \r
   ASSERT_EFI_ERROR (Status);\r
   return Status;\r
index 816cf6f86950bf62de285b269031163e85d3c59a..1b3e35ad6d86bde809bc5c328596ff4c8c8d6fdc 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>BaseLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>BaseDebugLibReportStatusCode</Library>\r
index ad1108447612f056180c42da0cac24b7d529cb3f..feb0c07011b17b92d5323ad0e967e705a17aad93 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PcdLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">MemoryAllocationLib</LibraryClass>\r
index ab862efcaedcea9dd16bdfb4a994719ff5f3fbf8..e931679d39e64af6e1f0e748f851e60aa26e679d 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>PeimEntryPoint</Library>\r
     <Library>PeiMemoryLib</Library>\r
-    <Library>PeiCoreLib</Library>\r
+    <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
index 2890c9d5a280e1a5b56d79f275fa4bf15f2e22ac..a227dd0133c87e679eee2f16bde8125f926e8088 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">HobLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
diff --git a/MdePkg/Include/Library/PeiCoreLib.h b/MdePkg/Include/Library/PeiCoreLib.h
deleted file mode 100644 (file)
index dfbe51c..0000000
+++ /dev/null
@@ -1,306 +0,0 @@
-/** @file\r
-       PEI Core Library implementation\r
-\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
-       which accompanies this distribution.  The full text of the license may be found at        \r
-       http://opensource.org/licenses/bsd-license.php                                            \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
-       Module Name:    PeiCoreLib.h\r
-\r
-**/\r
-\r
-#ifndef __PEI_CORE_LIB_H__\r
-#define __PEI_CORE_LIB_H__\r
-\r
-/**\r
-       This service enables a given PEIM to register an interface into the PEI Foundation. \r
-\r
-       @param  PpiList A pointer to the list of interfaces that the caller shall install.\r
-\r
-       @retval EFI_SUCCESS The interface was successfully installed.\r
-       @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
-       @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
-       the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreInstallPpi (\r
-  IN EFI_PEI_PPI_DESCRIPTOR           *PpiList\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
-\r
-       @param  OldPpi Pointer to the old PEI PPI Descriptors.\r
-       @param  NewPpi Pointer to the new PEI PPI Descriptors.\r
-\r
-       @retval EFI_SUCCESS The interface was successfully installed.\r
-       @retval EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
-       @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
-       the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
-       @retval EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreReinstallPpi (\r
-  IN EFI_PEI_PPI_DESCRIPTOR           *OldPpi,\r
-  IN EFI_PEI_PPI_DESCRIPTOR           *NewPpi\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to discover a given instance of an interface.\r
-\r
-       @param  Guid A pointer to the GUID whose corresponding interface needs to be found.\r
-       @param  Instance The N-th instance of the interface that is required.\r
-       @param  PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
-       @param  Ppi A pointer to the instance of the interface.\r
-\r
-       @retval EFI_SUCCESS The interface was successfully returned.\r
-       @retval EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreLocatePpi (\r
-  IN EFI_GUID                         *Guid,\r
-  IN UINTN                            Instance,\r
-  IN OUT EFI_PEI_PPI_DESCRIPTOR       **PpiDescriptor,\r
-  IN OUT VOID                         **Ppi\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to register a given service to be invoked\r
-       when another service is installed or reinstalled.\r
-\r
-       @param  NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
-\r
-       @retval EFI_SUCCESS The interface was successfully installed.\r
-       @retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
-       @retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
-       the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreNotifyPpi (\r
-  IN EFI_PEI_NOTIFY_DESCRIPTOR        *NotifyList\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to ascertain the present value of the boot mode.  \r
-\r
-       @param  BootMode A pointer to contain the value of the boot mode.\r
-\r
-       @retval EFI_SUCCESS The boot mode was returned successfully.\r
-       @retval EFI_INVALID_PARAMETER BootMode is NULL.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreGetBootMode (\r
-  IN OUT EFI_BOOT_MODE                *BootMode\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to update the boot mode variable.    \r
-\r
-       @param  BootMode The value of the boot mode to set.\r
-\r
-       @retval EFI_SUCCESS The value was successfully updated\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreSetBootMode (\r
-  IN EFI_BOOT_MODE                    BootMode\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
-\r
-       @param  HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
-\r
-       @retval EFI_SUCCESS The list was successfully returned.\r
-       @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreGetHobList (\r
-  IN OUT VOID                         **HobList\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to create various types of HOBs.\r
-\r
-       @param  Type The type of HOB to be installed.\r
-       @param  Length The length of the HOB to be added.\r
-       @param  Hob The address of a pointer that will contain the HOB header.\r
-\r
-       @retval EFI_SUCCESS The HOB was successfully created.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreCreateHob (\r
-  IN UINT16                           Type,\r
-  IN UINT16                           Length,\r
-  IN OUT VOID                         **Hob\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to discover additional firmware volumes.\r
-\r
-       @param  Instance This instance of the firmware volume to find.\r
-       The value 0 is the Boot Firmware Volume (BFV).\r
-       @param  FwVolHeader Pointer to the firmware volume header of the volume to return.\r
-\r
-       @retval EFI_SUCCESS The volume was found.\r
-       @retval EFI_NOT_FOUND The volume was not found.\r
-       @retval EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreFfsFindNextVolume (\r
-  IN UINTN                            Instance,\r
-  IN OUT EFI_FIRMWARE_VOLUME_HEADER   **FwVolHeader\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to discover additional firmware files.\r
-\r
-       @param  SearchType A filter to find files only of this type.\r
-       @param  FwVolHeader Pointer to the firmware volume header of the volume to search.\r
-       This parameter must point to a valid FFS volume.\r
-       @param  FileHeader Pointer to the current file from which to begin searching.\r
-\r
-       @retval EFI_SUCCESS The file was found.\r
-       @retval EFI_NOT_FOUND The file was not found.\r
-       @retval EFI_NOT_FOUND The header checksum was not zero.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreFfsFindNextFile (\r
-  IN EFI_FV_FILETYPE                  SearchType,\r
-  IN EFI_FIRMWARE_VOLUME_HEADER       *FwVolHeader,\r
-  IN OUT EFI_FFS_FILE_HEADER          **FileHeader\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
-\r
-       @param  SearchType The value of the section type to find.\r
-       @param  FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
-       @param  SectionData A pointer to the discovered section, if successful.\r
-\r
-       @retval EFI_SUCCESS The section was found.\r
-       @retval EFI_NOT_FOUND The section was not found.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreFfsFindSectionData (\r
-  IN EFI_SECTION_TYPE                 SectionType,\r
-  IN EFI_FFS_FILE_HEADER              *FfsFileHeader,\r
-  IN OUT VOID                         **SectionData\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to register the permanent memory configuration\r
-       that has been initialized with the PEI Foundation.\r
-\r
-       @param  MemoryBegin The value of a region of installed memory.\r
-       @param  MemoryLength The corresponding length of a region of installed memory.\r
-\r
-       @retval EFI_SUCCESS The region was successfully installed in a HOB.\r
-       @retval EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreInstallPeiMemory (\r
-  IN EFI_PHYSICAL_ADDRESS             MemoryBegin,\r
-  IN UINT64                           MemoryLength\r
-  )\r
-;\r
-\r
-/**\r
-       This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
-\r
-       @param  MemoryType Type of memory to allocate.\r
-       @param  Pages Number of pages to allocate.\r
-       @param  Memory Pointer of memory allocated.\r
-\r
-       @retval EFI_SUCCESS The memory range was successfully allocated.\r
-       @retval EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
-       @retval EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
-       @retval EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreAllocatePages (\r
-  IN EFI_MEMORY_TYPE                  MemoryType,\r
-  IN UINTN                            Pages,\r
-  IN OUT EFI_PHYSICAL_ADDRESS         *Memory\r
-  )\r
-;\r
-\r
-/**\r
-       This service allocates memory from the Hand-Off Block (HOB) heap.\r
-\r
-       @param  Size The number of bytes to allocate from the pool.\r
-       @param  Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
-       undefined otherwise.\r
-\r
-       @retval EFI_SUCCESS The allocation was successful\r
-       @retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreAllocatePool (\r
-  IN UINTN                            Size,\r
-  OUT VOID                            **Buffer\r
-  )\r
-;\r
-\r
-/**\r
-       This service resets the entire platform, including all processors and devices, and reboots the system. \r
-\r
-       @retval EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiCoreResetSystem (\r
-  VOID\r
-  )\r
-;\r
-\r
-#endif\r
diff --git a/MdePkg/Include/Library/PeiServicesLib.h b/MdePkg/Include/Library/PeiServicesLib.h
new file mode 100644 (file)
index 0000000..64bd253
--- /dev/null
@@ -0,0 +1,306 @@
+/** @file\r
+       PEI Core Library implementation\r
+\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
+       which accompanies this distribution.  The full text of the license may be found at        \r
+       http://opensource.org/licenses/bsd-license.php                                            \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
+       Module Name:    PeiServicesLib.h\r
+\r
+**/\r
+\r
+#ifndef __PEI_SERVICES_LIB_H__\r
+#define __PEI_SERVICES_LIB_H__\r
+\r
+/**\r
+       This service enables a given PEIM to register an interface into the PEI Foundation. \r
+\r
+       @param  PpiList A pointer to the list of interfaces that the caller shall install.\r
+\r
+       @retval EFI_SUCCESS The interface was successfully installed.\r
+       @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
+       @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+       the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPpi (\r
+  IN EFI_PEI_PPI_DESCRIPTOR           *PpiList\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
+\r
+       @param  OldPpi Pointer to the old PEI PPI Descriptors.\r
+       @param  NewPpi Pointer to the new PEI PPI Descriptors.\r
+\r
+       @retval EFI_SUCCESS The interface was successfully installed.\r
+       @retval EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
+       @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+       the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+       @retval EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesReinstallPpi (\r
+  IN EFI_PEI_PPI_DESCRIPTOR           *OldPpi,\r
+  IN EFI_PEI_PPI_DESCRIPTOR           *NewPpi\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to discover a given instance of an interface.\r
+\r
+       @param  Guid A pointer to the GUID whose corresponding interface needs to be found.\r
+       @param  Instance The N-th instance of the interface that is required.\r
+       @param  PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
+       @param  Ppi A pointer to the instance of the interface.\r
+\r
+       @retval EFI_SUCCESS The interface was successfully returned.\r
+       @retval EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesLocatePpi (\r
+  IN EFI_GUID                         *Guid,\r
+  IN UINTN                            Instance,\r
+  IN OUT EFI_PEI_PPI_DESCRIPTOR       **PpiDescriptor,\r
+  IN OUT VOID                         **Ppi\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to register a given service to be invoked\r
+       when another service is installed or reinstalled.\r
+\r
+       @param  NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
+\r
+       @retval EFI_SUCCESS The interface was successfully installed.\r
+       @retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
+       @retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
+       the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
+       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesNotifyPpi (\r
+  IN EFI_PEI_NOTIFY_DESCRIPTOR        *NotifyList\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to ascertain the present value of the boot mode.  \r
+\r
+       @param  BootMode A pointer to contain the value of the boot mode.\r
+\r
+       @retval EFI_SUCCESS The boot mode was returned successfully.\r
+       @retval EFI_INVALID_PARAMETER BootMode is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetBootMode (\r
+  IN OUT EFI_BOOT_MODE                *BootMode\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to update the boot mode variable.    \r
+\r
+       @param  BootMode The value of the boot mode to set.\r
+\r
+       @retval EFI_SUCCESS The value was successfully updated\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesSetBootMode (\r
+  IN EFI_BOOT_MODE                    BootMode\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
+\r
+       @param  HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
+\r
+       @retval EFI_SUCCESS The list was successfully returned.\r
+       @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetHobList (\r
+  IN OUT VOID                         **HobList\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to create various types of HOBs.\r
+\r
+       @param  Type The type of HOB to be installed.\r
+       @param  Length The length of the HOB to be added.\r
+       @param  Hob The address of a pointer that will contain the HOB header.\r
+\r
+       @retval EFI_SUCCESS The HOB was successfully created.\r
+       @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesCreateHob (\r
+  IN UINT16                           Type,\r
+  IN UINT16                           Length,\r
+  IN OUT VOID                         **Hob\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to discover additional firmware volumes.\r
+\r
+       @param  Instance This instance of the firmware volume to find.\r
+       The value 0 is the Boot Firmware Volume (BFV).\r
+       @param  FwVolHeader Pointer to the firmware volume header of the volume to return.\r
+\r
+       @retval EFI_SUCCESS The volume was found.\r
+       @retval EFI_NOT_FOUND The volume was not found.\r
+       @retval EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextVolume (\r
+  IN UINTN                            Instance,\r
+  IN OUT EFI_FIRMWARE_VOLUME_HEADER   **FwVolHeader\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to discover additional firmware files.\r
+\r
+       @param  SearchType A filter to find files only of this type.\r
+       @param  FwVolHeader Pointer to the firmware volume header of the volume to search.\r
+       This parameter must point to a valid FFS volume.\r
+       @param  FileHeader Pointer to the current file from which to begin searching.\r
+\r
+       @retval EFI_SUCCESS The file was found.\r
+       @retval EFI_NOT_FOUND The file was not found.\r
+       @retval EFI_NOT_FOUND The header checksum was not zero.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextFile (\r
+  IN EFI_FV_FILETYPE                  SearchType,\r
+  IN EFI_FIRMWARE_VOLUME_HEADER       *FwVolHeader,\r
+  IN OUT EFI_FFS_FILE_HEADER          **FileHeader\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
+\r
+       @param  SearchType The value of the section type to find.\r
+       @param  FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
+       @param  SectionData A pointer to the discovered section, if successful.\r
+\r
+       @retval EFI_SUCCESS The section was found.\r
+       @retval EFI_NOT_FOUND The section was not found.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindSectionData (\r
+  IN EFI_SECTION_TYPE                 SectionType,\r
+  IN EFI_FFS_FILE_HEADER              *FfsFileHeader,\r
+  IN OUT VOID                         **SectionData\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to register the permanent memory configuration\r
+       that has been initialized with the PEI Foundation.\r
+\r
+       @param  MemoryBegin The value of a region of installed memory.\r
+       @param  MemoryLength The corresponding length of a region of installed memory.\r
+\r
+       @retval EFI_SUCCESS The region was successfully installed in a HOB.\r
+       @retval EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
+       @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPeiMemory (\r
+  IN EFI_PHYSICAL_ADDRESS             MemoryBegin,\r
+  IN UINT64                           MemoryLength\r
+  )\r
+;\r
+\r
+/**\r
+       This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
+\r
+       @param  MemoryType Type of memory to allocate.\r
+       @param  Pages Number of pages to allocate.\r
+       @param  Memory Pointer of memory allocated.\r
+\r
+       @retval EFI_SUCCESS The memory range was successfully allocated.\r
+       @retval EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
+       @retval EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
+       @retval EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePages (\r
+  IN EFI_MEMORY_TYPE                  MemoryType,\r
+  IN UINTN                            Pages,\r
+  IN OUT EFI_PHYSICAL_ADDRESS         *Memory\r
+  )\r
+;\r
+\r
+/**\r
+       This service allocates memory from the Hand-Off Block (HOB) heap.\r
+\r
+       @param  Size The number of bytes to allocate from the pool.\r
+       @param  Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
+       undefined otherwise.\r
+\r
+       @retval EFI_SUCCESS The allocation was successful\r
+       @retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePool (\r
+  IN UINTN                            Size,\r
+  OUT VOID                            **Buffer\r
+  )\r
+;\r
+\r
+/**\r
+       This service resets the entire platform, including all processors and devices, and reboots the system. \r
+\r
+       @retval EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesResetSystem (\r
+  VOID\r
+  )\r
+;\r
+\r
+#endif\r
index b05bcc659371c62e26e4e939409550aad15584c8..9a3d4daabdbe8892f9eaed1e4f59f53b404e6e9a 100644 (file)
@@ -21,8 +21,6 @@
 #define REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED          0x00000001\r
 #define REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED             0x00000002\r
 #define REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED             0x00000004\r
-#define REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED              0x00000008\r
-#define REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED  0x00000010\r
 \r
 //\r
 // Extended Data structure definitions with EFI_STATUS_CODE_DATA headers removed\r
@@ -454,63 +452,6 @@ ReportStatusCodeEx (
   );\r
 \r
 \r
-/**\r
-  Sends an 32-bit value to a POST card.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.  \r
-  Some implementations of this library function may perform I/O operations \r
-  directly to a POST card device.  Other implementations may send Value to \r
-  ReportStatusCode(), and the status code reporting mechanism will eventually \r
-  display the 32-bit value on the status reporting device.\r
-  \r
-  PostCode() must actively prevent recursion.  If PostCode() is called while \r
-  processing another any other Report Status Code Library function, then \r
-  PostCode() must return Value immediately.\r
-\r
-  @param  Value  The 32-bit value to write to the POST card.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
-  IN UINT32  Value\r
-  );\r
-\r
-\r
-/**\r
-  Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
-  If Description is not NULL, then the ASCII string specified by Description is \r
-  also passed to the handler that displays the POST card value.  Some \r
-  implementations of this library function may perform I/O operations directly \r
-  to a POST card device.  Other implementations may send Value to ReportStatusCode(), \r
-  and the status code reporting mechanism will eventually display the 32-bit \r
-  value on the status reporting device.  \r
-\r
-  PostCodeWithDescription()must actively prevent recursion.  If \r
-  PostCodeWithDescription() is called while processing another any other Report \r
-  Status Code Library function, then PostCodeWithDescription() must return Value \r
-  immediately.\r
-\r
-  @param  Value        The 32-bit value to write to the POST card.\r
-  @param  Description  Pointer to an ASCII string that is a description of the \r
-                       POST code value.  This is an optional parameter that may \r
-                       be NULL.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
-  IN UINT32       Value,\r
-  IN CONST CHAR8  *Description  OPTIONAL\r
-  );\r
-\r
-\r
 /**\r
   Returns TRUE if status codes of type EFI_PROGRESS_CODE are enabled\r
 \r
@@ -568,45 +509,6 @@ ReportDebugCodeEnabled (
   );\r
 \r
 \r
-/**\r
-  Returns TRUE if POST Codes are enabled.\r
-\r
-  This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
-  bit of PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
-  VOID\r
-  );\r
-\r
-\r
-/**\r
-  Returns TRUE if POST code descriptions are enabled.\r
-\r
-  This function returns TRUE if the \r
-  REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
-  PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
-  VOID\r
-  );\r
-\r
-\r
 /**\r
   Reports a status code with minimal parameters if the status code type is enabled.\r
 \r
@@ -727,37 +629,4 @@ ReportPostCodeDescriptionEnabled (
   ReportStatusCodeEx(Type,Value,Instance,CallerId,ExtendedDataGuid,ExtendedData,ExtendedDataSize)        :  \\r
   EFI_UNSUPPORTED\r
 \r
-/**\r
-  Sends an 32-bit value to a POST card.\r
-\r
-  If POST codes are enabled in PcdReportStatusCodeProperyMask, then call PostCode() \r
-  passing in Value.  Value is returned.\r
-\r
-  @param  Value  The 32-bit value to write to the POST card.\r
-\r
-  @return  Value\r
-\r
-**/\r
-#define POST_CODE(Value)  ReportPostCodeEnabled() ? PostCode(Value) : Value\r
-\r
-/**\r
-  Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
-  If POST codes and POST code descriptions are enabled in \r
-  PcdReportStatusCodeProperyMask, then call PostCodeWithDescription() passing in \r
-  Value and Description.  If only POST codes are enabled, then call PostCode() \r
-  passing in Value.  Value is returned.\r
-\r
-  @param  Value        The 32-bit value to write to the POST card.\r
-  @param  Description  Pointer to an ASCII string that is a description of the \r
-                       POST code value.\r
-\r
-**/\r
-#define POST_CODE_WITH_DESCRIPTION(Value,Description)  \\r
-  ReportPostCodeEnabled()                        ?     \\r
-    (ReportPostCodeDescriptionEnabled()          ?     \\r
-      PostCodeWithDescription(Value,Description) :     \\r
-      PostCode(Value))                           :     \\r
-    Value\r
-\r
 #endif\r
index 663d41627eb88b2939f23c1596c49c1acf969a4d..78c20ebe2b6071fc40096045022684cfc595dad5 100644 (file)
@@ -41,7 +41,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
     <Filename>ReportStatusCodeLib.c</Filename>\r
-    <Filename>PostCode.c</Filename>\r
   </SourceFiles>\r
   <Includes>\r
     <PackageName>MdePkg</PackageName>\r
diff --git a/MdePkg/Library/BaseReportStatusCodeLibNull/PostCode.c b/MdePkg/Library/BaseReportStatusCodeLibNull/PostCode.c
deleted file mode 100644 (file)
index 3d0ce7c..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/** @file\r
-  Report Status Code Library Post Code functions for DXE Phase.\r
-\r
-  Copyright (c) 2006, Intel Corporation<BR>\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
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \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
-**/\r
-\r
-\r
-/**\r
-  Sends an 32-bit value to a POST card.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.  \r
-  Some implementations of this library function may perform I/O operations \r
-  directly to a POST card device.  Other implementations may send Value to \r
-  ReportStatusCode(), and the status code reporting mechanism will eventually \r
-  display the 32-bit value on the status reporting device.\r
-  \r
-  PostCode() must actively prevent recursion.  If PostCode() is called while \r
-  processing another any other Report Status Code Library function, then \r
-  PostCode() must return Value immediately.\r
-\r
-  @param  Value  The 32-bit value to write to the POST card.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
-  IN UINT32  Value\r
-  )\r
-{\r
-  DEBUG((EFI_D_INFO, "POST %08x\n", Value));\r
-  IoWrite8 (0x80, (UINT8)(Value));\r
-  return Value;\r
-}\r
-\r
-\r
-/**\r
-  Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
-  If Description is not NULL, then the ASCII string specified by Description is \r
-  also passed to the handler that displays the POST card value.  Some \r
-  implementations of this library function may perform I/O operations directly \r
-  to a POST card device.  Other implementations may send Value to ReportStatusCode(), \r
-  and the status code reporting mechanism will eventually display the 32-bit \r
-  value on the status reporting device.  \r
-\r
-  PostCodeWithDescription()must actively prevent recursion.  If \r
-  PostCodeWithDescription() is called while processing another any other Report \r
-  Status Code Library function, then PostCodeWithDescription() must return Value \r
-  immediately.\r
-\r
-  @param  Value        The 32-bit value to write to the POST card.\r
-  @param  Description  Pointer to an ASCII string that is a description of the \r
-                       POST code value.  This is an optional parameter that may \r
-                       be NULL.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
-  IN UINT32       Value,\r
-  IN CONST CHAR8  *Description  OPTIONAL\r
-  )\r
-{\r
-  DEBUG((EFI_D_INFO, "POST %08x - %s\n", Value, Description));\r
-  IoWrite8 (0x80, (UINT8)(Value));\r
-  return Value;\r
-}\r
-\r
-\r
-/**\r
-  Returns TRUE if POST Codes are enabled.\r
-\r
-  This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
-  bit of PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
-  VOID\r
-  )\r
-{\r
-  return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
-}\r
-\r
-\r
-/**\r
-  Returns TRUE if POST code descriptions are enabled.\r
-\r
-  This function returns TRUE if the \r
-  REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
-  PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
-  VOID\r
-  )\r
-{\r
-  return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);\r
-}\r
index 214fdf3e2818089bbca7d19e96b2d1d9ddf77c61..219646133cab07fb84b8f88cca48fe135fb0020a 100644 (file)
@@ -42,7 +42,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
     <Filename>ReportStatusCodeLib.c</Filename>\r
-    <Filename>PostCode.c</Filename>\r
   </SourceFiles>\r
   <Includes>\r
     <PackageName>MdePkg</PackageName>\r
diff --git a/MdePkg/Library/DxeReportStatusCodeLib/PostCode.c b/MdePkg/Library/DxeReportStatusCodeLib/PostCode.c
deleted file mode 100644 (file)
index 3d0ce7c..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/** @file\r
-  Report Status Code Library Post Code functions for DXE Phase.\r
-\r
-  Copyright (c) 2006, Intel Corporation<BR>\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
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \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
-**/\r
-\r
-\r
-/**\r
-  Sends an 32-bit value to a POST card.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.  \r
-  Some implementations of this library function may perform I/O operations \r
-  directly to a POST card device.  Other implementations may send Value to \r
-  ReportStatusCode(), and the status code reporting mechanism will eventually \r
-  display the 32-bit value on the status reporting device.\r
-  \r
-  PostCode() must actively prevent recursion.  If PostCode() is called while \r
-  processing another any other Report Status Code Library function, then \r
-  PostCode() must return Value immediately.\r
-\r
-  @param  Value  The 32-bit value to write to the POST card.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
-  IN UINT32  Value\r
-  )\r
-{\r
-  DEBUG((EFI_D_INFO, "POST %08x\n", Value));\r
-  IoWrite8 (0x80, (UINT8)(Value));\r
-  return Value;\r
-}\r
-\r
-\r
-/**\r
-  Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
-  If Description is not NULL, then the ASCII string specified by Description is \r
-  also passed to the handler that displays the POST card value.  Some \r
-  implementations of this library function may perform I/O operations directly \r
-  to a POST card device.  Other implementations may send Value to ReportStatusCode(), \r
-  and the status code reporting mechanism will eventually display the 32-bit \r
-  value on the status reporting device.  \r
-\r
-  PostCodeWithDescription()must actively prevent recursion.  If \r
-  PostCodeWithDescription() is called while processing another any other Report \r
-  Status Code Library function, then PostCodeWithDescription() must return Value \r
-  immediately.\r
-\r
-  @param  Value        The 32-bit value to write to the POST card.\r
-  @param  Description  Pointer to an ASCII string that is a description of the \r
-                       POST code value.  This is an optional parameter that may \r
-                       be NULL.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
-  IN UINT32       Value,\r
-  IN CONST CHAR8  *Description  OPTIONAL\r
-  )\r
-{\r
-  DEBUG((EFI_D_INFO, "POST %08x - %s\n", Value, Description));\r
-  IoWrite8 (0x80, (UINT8)(Value));\r
-  return Value;\r
-}\r
-\r
-\r
-/**\r
-  Returns TRUE if POST Codes are enabled.\r
-\r
-  This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
-  bit of PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
-  VOID\r
-  )\r
-{\r
-  return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
-}\r
-\r
-\r
-/**\r
-  Returns TRUE if POST code descriptions are enabled.\r
-\r
-  This function returns TRUE if the \r
-  REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
-  PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
-  VOID\r
-  )\r
-{\r
-  return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);\r
-}\r
index 1f0c66acd092fb26f7a905dc0032c04d53b035c4..ce9f79f82c1f4ec38cd37d85855f65ccabc4bc36 100644 (file)
@@ -33,7 +33,7 @@ GetHobList (
   EFI_STATUS            Status;\r
   VOID                  *HobList;\r
 \r
-  Status = PeiCoreGetHobList (&HobList);\r
+  Status = PeiServicesGetHobList (&HobList);\r
   ASSERT_EFI_ERROR (Status);\r
   ASSERT (HobList != NULL);\r
 \r
@@ -187,7 +187,7 @@ InternalPeiCreateHob (
   EFI_STATUS        Status;\r
   VOID              *Hob;\r
 \r
-  Status = PeiCoreCreateHob (Type, Length, &Hob);\r
+  Status = PeiServicesCreateHob (Type, Length, &Hob);\r
   //\r
   // Assume the process of HOB building is always successful.\r
   //\r
index 1d8fb79d24597ebf929877ad2d5bf7446c43a6ac..a5b71d3f0301bc9021eb21c3e05bcfbbf07cfd21 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <LibraryClassDefinitions>\r
     <LibraryClass Usage="ALWAYS_PRODUCED">HobLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
index c37e4234df7d91c9f56ff73a3515f137fabdc400..d2d0f1796709c9ade631ef1a0219447d08710dff 100644 (file)
@@ -42,7 +42,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
     <Filename>ReportStatusCodeLib.c</Filename>\r
-    <Filename>PostCode.c</Filename>\r
   </SourceFiles>\r
   <Includes>\r
     <PackageName>MdePkg</PackageName>\r
diff --git a/MdePkg/Library/PeiReportStatusCodeLib/PostCode.c b/MdePkg/Library/PeiReportStatusCodeLib/PostCode.c
deleted file mode 100644 (file)
index c5d32e7..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/** @file\r
-  Report Status Code Library Post Code functions for PEI Phase.\r
-\r
-  Copyright (c) 2006, Intel Corporation<BR>\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
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \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
-**/\r
-\r
-\r
-/**\r
-  Sends an 32-bit value to a POST card.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.  \r
-  Some implementations of this library function may perform I/O operations \r
-  directly to a POST card device.  Other implementations may send Value to \r
-  ReportStatusCode(), and the status code reporting mechanism will eventually \r
-  display the 32-bit value on the status reporting device.\r
-  \r
-  PostCode() must actively prevent recursion.  If PostCode() is called while \r
-  processing another any other Report Status Code Library function, then \r
-  PostCode() must return Value immediately.\r
-\r
-  @param  Value  The 32-bit value to write to the POST card.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCode (\r
-  IN UINT32  Value\r
-  )\r
-{\r
-  DEBUG((EFI_D_INFO, "POST %08x\n", Value));\r
-  IoWrite8 (0x80, (UINT8)(Value));\r
-  return Value;\r
-}\r
-\r
-\r
-/**\r
-  Sends an 32-bit value to a POST and associated ASCII string.\r
-\r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
-  If Description is not NULL, then the ASCII string specified by Description is \r
-  also passed to the handler that displays the POST card value.  Some \r
-  implementations of this library function may perform I/O operations directly \r
-  to a POST card device.  Other implementations may send Value to ReportStatusCode(), \r
-  and the status code reporting mechanism will eventually display the 32-bit \r
-  value on the status reporting device.  \r
-\r
-  PostCodeWithDescription()must actively prevent recursion.  If \r
-  PostCodeWithDescription() is called while processing another any other Report \r
-  Status Code Library function, then PostCodeWithDescription() must return Value \r
-  immediately.\r
-\r
-  @param  Value        The 32-bit value to write to the POST card.\r
-  @param  Description  Pointer to an ASCII string that is a description of the \r
-                       POST code value.  This is an optional parameter that may \r
-                       be NULL.\r
-\r
-  @return  Value\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-PostCodeWithDescription (\r
-  IN UINT32       Value,\r
-  IN CONST CHAR8  *Description  OPTIONAL\r
-  )\r
-{\r
-  DEBUG((EFI_D_INFO, "POST %08x - %s\n", Value, Description));\r
-  IoWrite8 (0x80, (UINT8)(Value));\r
-  return Value;\r
-}\r
-\r
-\r
-/**\r
-  Returns TRUE if POST Codes are enabled.\r
-\r
-  This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED \r
-  bit of PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
-                  PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeEnabled (\r
-  VOID\r
-  )\r
-{\r
-  return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
-}\r
-\r
-\r
-/**\r
-  Returns TRUE if POST code descriptions are enabled.\r
-\r
-  This function returns TRUE if the \r
-  REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED bit of \r
-  PcdReportStatusCodeProperyMask is set.  Otherwise FALSE is returned.\r
-\r
-  @retval  TRUE   The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is set.\r
-  @retval  FALSE  The REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTIONS_ENABLED \r
-                  bit of PcdReportStatusCodeProperyMask is clear.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-ReportPostCodeDescriptionEnabled (\r
-  VOID\r
-  )\r
-{\r
-  return ((PcdGet8(PcdReportStatusCodePropertyMask) & REPORT_STATUS_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);\r
-}\r
index 2726c53fc56b997cbd44ef80cb62c77bdc948ab3..9cde383a9b4f708b89330401548c5c2bf036668a 100644 (file)
@@ -43,7 +43,7 @@ PublishSystemMemory (
   ASSERT (MemoryLength > 0);\r
   ASSERT (MemoryLength <= (MAX_ADDRESS - MemoryBegin + 1));\r
 \r
-  Status      = PeiCoreInstallPeiMemory (MemoryBegin, MemoryLength);\r
+  Status      = PeiServicesInstallPeiMemory (MemoryBegin, MemoryLength);\r
      \r
   return (RETURN_STATUS) Status;\r
 }\r
index 2e85949b1263d2c1b1a8e5efb2c5f2eadb6e3bd2..dd54b7197b844c695e3137906c155d5d73878edd 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </MsaLibHeader>\r
   <LibraryClassDefinitions>\r
     <LibraryClass Usage="ALWAYS_PRODUCED">ResourcePublicationLib</LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">PeiCoreLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>\r
     <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>\r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
diff --git a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
new file mode 100644 (file)
index 0000000..ef16064
--- /dev/null
@@ -0,0 +1,376 @@
+/** @file\r
+  PEI Library.\r
+\r
+  Copyright (c) 2006, Intel Corporation<BR>\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
+  which accompanies this distribution.  The full text of the license may be found at        \r
+  http://opensource.org/licenses/bsd-license.php                                            \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
+  Module Name:  PeiServicesLib.c\r
+\r
+**/\r
+\r
+/**\r
+  This service enables a given PEIM to register an interface into the PEI Foundation. \r
+\r
+  @param  PpiList A pointer to the list of interfaces that the caller shall install.\r
+\r
+  @retval  EFI_SUCCESS The interface was successfully installed.\r
+  @retval  EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
+  @retval  EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+  the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPpi (\r
+  IN EFI_PEI_PPI_DESCRIPTOR           *PpiList\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->InstallPpi (PeiServices, PpiList);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
+\r
+  @param  OldPpi Pointer to the old PEI PPI Descriptors.\r
+  @param  NewPpi Pointer to the new PEI PPI Descriptors.\r
+\r
+  @retval  EFI_SUCCESS The interface was successfully installed.\r
+  @retval  EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
+  @retval  EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+  the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+  @retval  EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesReinstallPpi (\r
+  IN EFI_PEI_PPI_DESCRIPTOR           *OldPpi,\r
+  IN EFI_PEI_PPI_DESCRIPTOR           *NewPpi\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->ReInstallPpi (PeiServices, OldPpi, NewPpi);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to discover a given instance of an interface.\r
+\r
+  @param  Guid A pointer to the GUID whose corresponding interface needs to be found.\r
+  @param  Instance The N-th instance of the interface that is required.\r
+  @param  PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
+  @param  Ppi A pointer to the instance of the interface.\r
+\r
+  @retval  EFI_SUCCESS The interface was successfully returned.\r
+  @retval  EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesLocatePpi (\r
+  IN EFI_GUID                         *Guid,\r
+  IN UINTN                            Instance,\r
+  IN OUT EFI_PEI_PPI_DESCRIPTOR       **PpiDescriptor,\r
+  IN OUT VOID                         **Ppi\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->LocatePpi (PeiServices, Guid, Instance, PpiDescriptor, Ppi);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to register a given service to be invoked\r
+  when another service is installed or reinstalled.\r
+\r
+  @param  NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
+\r
+  @retval  EFI_SUCCESS The interface was successfully installed.\r
+  @retval  EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
+  @retval  EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
+  the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesNotifyPpi (\r
+  IN EFI_PEI_NOTIFY_DESCRIPTOR        *NotifyList\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->NotifyPpi (PeiServices, NotifyList);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to ascertain the present value of the boot mode.  \r
+\r
+  @param  BootMode A pointer to contain the value of the boot mode.\r
+\r
+  @retval  EFI_SUCCESS The boot mode was returned successfully.\r
+  @retval  EFI_INVALID_PARAMETER BootMode is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetBootMode (\r
+  IN OUT EFI_BOOT_MODE                *BootMode\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->GetBootMode (PeiServices, BootMode);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to update the boot mode variable.    \r
+\r
+  @param  BootMode The value of the boot mode to set.\r
+\r
+  @retval  EFI_SUCCESS The value was successfully updated\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesSetBootMode (\r
+  IN EFI_BOOT_MODE                    BootMode\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->SetBootMode (PeiServices, BootMode);\r
+}\r
+\r
+/**\r
+  This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
+\r
+  @param  HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
+\r
+  @retval  EFI_SUCCESS The list was successfully returned.\r
+  @retval  EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesGetHobList (\r
+  IN OUT VOID                         **HobList\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->GetHobList (PeiServices, HobList);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to create various types of HOBs.\r
+\r
+  @param  Type The type of HOB to be installed.\r
+  @param  Length The length of the HOB to be added.\r
+  @param  Hob The address of a pointer that will contain the HOB header.\r
+\r
+  @retval  EFI_SUCCESS The HOB was successfully created.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesCreateHob (\r
+  IN UINT16                           Type,\r
+  IN UINT16                           Length,\r
+  IN OUT VOID                         **Hob\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->CreateHob (PeiServices, Type, Length, Hob);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to discover additional firmware volumes.\r
+\r
+  @param  Instance This instance of the firmware volume to find.\r
+  The value 0 is the Boot Firmware Volume (BFV).\r
+  @param  FwVolHeader Pointer to the firmware volume header of the volume to return.\r
+\r
+  @retval  EFI_SUCCESS The volume was found.\r
+  @retval  EFI_NOT_FOUND The volume was not found.\r
+  @retval  EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextVolume (\r
+  IN UINTN                            Instance,\r
+  IN OUT EFI_FIRMWARE_VOLUME_HEADER   **FwVolHeader\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->FfsFindNextVolume (PeiServices, Instance, FwVolHeader);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to discover additional firmware files.\r
+\r
+  @param  SearchType A filter to find files only of this type.\r
+  @param  FwVolHeader Pointer to the firmware volume header of the volume to search.\r
+  This parameter must point to a valid FFS volume.\r
+  @param  FileHeader Pointer to the current file from which to begin searching.\r
+\r
+  @retval  EFI_SUCCESS The file was found.\r
+  @retval  EFI_NOT_FOUND The file was not found.\r
+  @retval  EFI_NOT_FOUND The header checksum was not zero.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindNextFile (\r
+  IN EFI_FV_FILETYPE                  SearchType,\r
+  IN EFI_FIRMWARE_VOLUME_HEADER       *FwVolHeader,\r
+  IN OUT EFI_FFS_FILE_HEADER          **FileHeader\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->FfsFindNextFile (PeiServices, SearchType, FwVolHeader, FileHeader);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
+\r
+  @param  SearchType The value of the section type to find.\r
+  @param  FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
+  @param  SectionData A pointer to the discovered section, if successful.\r
+\r
+  @retval  EFI_SUCCESS The section was found.\r
+  @retval  EFI_NOT_FOUND The section was not found.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesFfsFindSectionData (\r
+  IN EFI_SECTION_TYPE                 SectionType,\r
+  IN EFI_FFS_FILE_HEADER              *FfsFileHeader,\r
+  IN OUT VOID                         **SectionData\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->FfsFindSectionData (PeiServices, SectionType, FfsFileHeader, SectionData);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to register the permanent memory configuration\r
+  that has been initialized with the PEI Foundation.\r
+\r
+  @param  MemoryBegin The value of a region of installed memory.\r
+  @param  MemoryLength The corresponding length of a region of installed memory.\r
+\r
+  @retval  EFI_SUCCESS The region was successfully installed in a HOB.\r
+  @retval  EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesInstallPeiMemory (\r
+  IN EFI_PHYSICAL_ADDRESS             MemoryBegin,\r
+  IN UINT64                           MemoryLength\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->InstallPeiMemory (PeiServices, MemoryBegin, MemoryLength);\r
+}\r
+\r
+/**\r
+  This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
+\r
+  @param  MemoryType Type of memory to allocate.\r
+  @param  Pages Number of pages to allocate.\r
+  @param  Memory Pointer of memory allocated.\r
+\r
+  @retval  EFI_SUCCESS The memory range was successfully allocated.\r
+  @retval  EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
+  @retval  EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
+  @retval  EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePages (\r
+  IN EFI_MEMORY_TYPE                  MemoryType,\r
+  IN UINTN                            Pages,\r
+  IN OUT EFI_PHYSICAL_ADDRESS         *Memory\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->AllocatePages (PeiServices, MemoryType, Pages, Memory);\r
+}\r
+\r
+/**\r
+  This service allocates memory from the Hand-Off Block (HOB) heap.\r
+\r
+  @param  Size The number of bytes to allocate from the pool.\r
+  @param  Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
+  undefined otherwise.\r
+\r
+  @retval  EFI_SUCCESS The allocation was successful\r
+  @retval  EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesAllocatePool (\r
+  IN UINTN                            Size,\r
+  OUT VOID                            **Buffer\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->AllocatePool (PeiServices, Size, Buffer);\r
+}\r
+\r
+/**\r
+  This service resets the entire platform, including all processors and devices, and reboots the system. \r
+\r
+  @retval  EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PeiServicesResetSystem (\r
+  VOID\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+  \r
+  PeiServices = GetPeiServicesTablePointer ();\r
+  return (*PeiServices)->PeiResetSystem (PeiServices);\r
+}\r
diff --git a/MdePkg/Library/PeiServicesLib/PeiServicesLib.mbd b/MdePkg/Library/PeiServicesLib/PeiServicesLib.mbd
new file mode 100644 (file)
index 0000000..cecec2d
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\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
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\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
+<LibraryModuleBuildDescription xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0  http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+  <MbdLibHeader>\r
+    <BaseName>PeiServicesLib</BaseName>\r
+    <Guid>a804239b-4155-446f-acc8-f0825d74908c</Guid>\r
+    <Version>0</Version>\r
+    <Description>FIX ME!</Description>\r
+    <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+    <License>\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
+      which accompanies this distribution.  The full text of the license may be found at\r
+      http://opensource.org/licenses/bsd-license.php\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
+    </License>\r
+    <Created>2006-03-09 23:12</Created>\r
+    <Modified>2006-03-19 15:17</Modified>\r
+  </MbdLibHeader>\r
+</LibraryModuleBuildDescription>\r
diff --git a/MdePkg/Library/PeiServicesLib/PeiServicesLib.msa b/MdePkg/Library/PeiServicesLib/PeiServicesLib.msa
new file mode 100644 (file)
index 0000000..b889029
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\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
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\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
+<LibraryModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0  http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+  <MsaLibHeader>\r
+    <BaseName>PeiServicesLib</BaseName>\r
+    <ModuleType>PEIM</ModuleType>\r
+    <ComponentType>LIBRARY</ComponentType>\r
+    <Guid>a804239b-4155-446f-acc8-f0825d74908c</Guid>\r
+    <Version>0</Version>\r
+    <Abstract>Component description file for the entry point to a EFIDXE Drivers</Abstract>\r
+    <Description>FIX ME!</Description>\r
+    <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+    <License>\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
+      which accompanies this distribution.  The full text of the license may be found at\r
+      http://opensource.org/licenses/bsd-license.php\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
+    </License>\r
+    <Created>2006-03-09 23:12</Created>\r
+    <Updated>2006-03-19 15:17</Updated>\r
+    <Specification>0</Specification>\r
+  </MsaLibHeader>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_PRODUCED">PeiServicesLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <SourceFiles>\r
+    <Filename>PeiServicesLib.c</Filename>\r
+  </SourceFiles>\r
+  <Includes>\r
+    <PackageName>MdePkg</PackageName>\r
+  </Includes>\r
+</LibraryModuleSurfaceArea>\r
diff --git a/MdePkg/Library/PeiServicesLib/build.xml b/MdePkg/Library/PeiServicesLib/build.xml
new file mode 100644 (file)
index 0000000..3f5c9f6
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?><!-- 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
+which accompanies this distribution.  The full text of the license may be found at  \r
+http://opensource.org/licenses/bsd-license.php \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
+<project basedir="." default="PeiServicesLib"><!--Apply external ANT tasks-->\r
+   <taskdef resource="GenBuild.tasks"/>\r
+   <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
+   <property environment="env"/>\r
+   <property name="WORKSPACE_DIR" value="${env.WORKSPACE}"/>\r
+   <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml"/><!--MODULE_RELATIVE PATH is relative to PACKAGE_DIR-->\r
+   <property name="MODULE_RELATIVE_PATH" value="Library/PeiServicesLib"/>\r
+   <property name="MODULE_DIR" value="${PACKAGE_DIR}/${MODULE_RELATIVE_PATH}"/>\r
+   <property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml"/>\r
+   <target name="PeiServicesLib">\r
+      <GenBuild baseName="PeiServicesLib" mbdFilename="${MODULE_DIR}/PeiServicesLib.mbd" msaFilename="${MODULE_DIR}/PeiServicesLib.msa"/>\r
+   </target>\r
+   <target depends="PeiServicesLib_clean" name="clean"/>\r
+   <target depends="PeiServicesLib_cleanall" name="cleanall"/>\r
+   <target name="PeiServicesLib_clean">\r
+      <OutputDirSetup baseName="PeiServicesLib" mbdFilename="${MODULE_DIR}/PeiServicesLib.mbd" msaFilename="${MODULE_DIR}/PeiServicesLib.msa"/>\r
+      <if>\r
+         <available file="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml"/>\r
+         <then>\r
+            <ant antfile="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml" target="clean"/>\r
+         </then>\r
+      </if>\r
+      <delete dir="${DEST_DIR_OUTPUT}" excludes="*.xml"/>\r
+   </target>\r
+   <target name="PeiServicesLib_cleanall">\r
+      <OutputDirSetup baseName="PeiServicesLib" mbdFilename="${MODULE_DIR}/PeiServicesLib.mbd" msaFilename="${MODULE_DIR}/PeiServicesLib.msa"/>\r
+      <if>\r
+         <available file="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml"/>\r
+         <then>\r
+            <ant antfile="${DEST_DIR_OUTPUT}/PeiServicesLib_build.xml" target="cleanall"/>\r
+         </then>\r
+      </if>\r
+      <delete dir="${DEST_DIR_OUTPUT}"/>\r
+      <delete dir="${DEST_DIR_DEBUG}"/>\r
+      <delete>\r
+         <fileset dir="${BIN_DIR}" includes="**PeiServicesLib*"/>\r
+      </delete>\r
+   </target>\r
+</project>
\ No newline at end of file
index b12e506c8dfc8a2906a899574291daafa0d553ae..636fd0e429a2ef4140ecbc11799374e19fd6a8cf 100644 (file)
@@ -65,7 +65,7 @@
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
       \r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
-      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
       \r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
-      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
       \r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
-      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
       \r
       </ModuleSA>        \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
       </ModuleSA>        \r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
       </ModuleSA>        \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
       </ModuleSA>        \r
       </ModuleSA>        \r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
       </ModuleSA>        \r
-      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
       </ModuleSA>        \r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
       </ModuleSA>        \r
       </ModuleSA>        \r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
       </ModuleSA>        \r
-      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
       </ModuleSA>        \r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
       </ModuleSA>        \r
       </ModuleSA>        \r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
       </ModuleSA>        \r
-      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
       </ModuleSA>        \r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
       </ModuleSA>        \r
index 684662f72a3108c6b51f0efd4848439dbc123ba4..d3068a5817b1224d3ca7405cda1546e61ddfcde4 100644 (file)
@@ -62,7 +62,7 @@
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseSmbusLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiSmbusLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" />\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" />\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesTablePointerLib" />\r
 \r
       </ModuleSA>        \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmbusLib" >\r
       </ModuleSA>        \r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreLib" >\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesLib" >\r
       </ModuleSA>        \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiMemoryLib" >\r
       </ModuleSA>        \r
index 6b432384a1dfc15fe04d0c231ccf1417b7480aae..28e90eebb0f765cc6291d3bebfa1b6a60d5fc9e0 100644 (file)
       <IncludeHeader>Include/Library/PeiCoreEntryPoint.h</IncludeHeader>\r
     </LibraryClassDeclaration>\r
     <LibraryClassDeclaration>\r
-      <LibraryClass>PeiCoreLib</LibraryClass>\r
-      <IncludeHeader>Include/Library/PeiCoreLib.h</IncludeHeader>\r
+      <LibraryClass>PeiServicesLib</LibraryClass>\r
+      <IncludeHeader>Include/Library/PeiServicesLib.h</IncludeHeader>\r
     </LibraryClassDeclaration>\r
     <LibraryClassDeclaration>\r
       <LibraryClass>PeimEntryPoint</LibraryClass>\r
       <Filename>Library/PeiCoreEntryPoint/PeiCoreEntryPoint.msa</Filename>\r
     </MsaFile>\r
     <MsaFile>\r
-      <Filename>Library/PeiCoreLib/PeiCoreLib.msa</Filename>\r
+      <Filename>Library/PeiServicesLib/PeiServicesLib.msa</Filename>\r
     </MsaFile>\r
     <MsaFile>\r
       <Filename>Library/PeiHobLib/PeiHobLib.msa</Filename>\r