Remove BaseMemoryTest PPI and related producers and consumers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7560 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -21,7 +21,6 @@ Revision History
|
||||
|
||||
#include "PiPei.h"
|
||||
#include <Ppi/UnixAutoScan.h>
|
||||
#include <Ppi/BaseMemoryTest.h>
|
||||
#include <Ppi/MemoryDiscovered.h>
|
||||
|
||||
#include <Library/DebugLib.h>
|
||||
@ -57,8 +56,6 @@ Returns:
|
||||
PEI_UNIX_AUTOSCAN_PPI *PeiUnixService;
|
||||
UINT64 MemorySize;
|
||||
EFI_PHYSICAL_ADDRESS MemoryBase;
|
||||
PEI_BASE_MEMORY_TEST_PPI *MemoryTestPpi;
|
||||
EFI_PHYSICAL_ADDRESS ErrorAddress;
|
||||
UINTN Index;
|
||||
EFI_RESOURCE_ATTRIBUTE_TYPE Attributes;
|
||||
|
||||
@ -76,17 +73,6 @@ Returns:
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
//
|
||||
// Get the Memory Test PPI
|
||||
//
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gPeiBaseMemoryTestPpiGuid,
|
||||
0,
|
||||
NULL,
|
||||
(VOID**)&MemoryTestPpi
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
Index = 0;
|
||||
do {
|
||||
Status = PeiUnixService->UnixAutoScan (Index, &MemoryBase, &MemorySize);
|
||||
@ -103,20 +89,7 @@ Returns:
|
||||
|
||||
if (Index == 0) {
|
||||
//
|
||||
// For the first area register it as PEI tested memory
|
||||
//
|
||||
Status = MemoryTestPpi->BaseMemoryTest (
|
||||
(EFI_PEI_SERVICES **) PeiServices,
|
||||
MemoryTestPpi,
|
||||
MemoryBase,
|
||||
MemorySize,
|
||||
Quick,
|
||||
&ErrorAddress
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
//
|
||||
// Register the "tested" memory with the PEI Core
|
||||
// Register the memory with the PEI Core
|
||||
//
|
||||
Status = PeiServicesInstallPeiMemory (MemoryBase, MemorySize);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
Reference in New Issue
Block a user