mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformBootManagerLib: Remove unnecessary memory test
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
30edcbf5d1
commit
e64a2ebe7d
|
@ -1213,62 +1213,6 @@ Returns:
|
|||
gST->ConOut->ClearScreen (gST->ConOut);
|
||||
}
|
||||
|
||||
VOID
|
||||
PlatformBdsDiagnostics (
|
||||
IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,
|
||||
IN BOOLEAN QuietBoot,
|
||||
IN BASEM_MEMORY_TEST BaseMemoryTest
|
||||
)
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
|
||||
Perform the platform diagnostic, such like test memory. OEM/IBV also
|
||||
can customize this fuction to support specific platform diagnostic.
|
||||
|
||||
Arguments:
|
||||
|
||||
MemoryTestLevel - The memory test intensive level
|
||||
|
||||
QuietBoot - Indicate if need to enable the quiet boot
|
||||
|
||||
BaseMemoryTest - A pointer to BaseMemoryTest()
|
||||
|
||||
Returns:
|
||||
|
||||
None.
|
||||
|
||||
--*/
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
DEBUG ((EFI_D_INFO, "PlatformBdsDiagnostics\n"));
|
||||
|
||||
//
|
||||
// Here we can decide if we need to show
|
||||
// the diagnostics screen
|
||||
// Notes: this quiet boot code should be remove
|
||||
// from the graphic lib
|
||||
//
|
||||
if (QuietBoot) {
|
||||
EnableQuietBoot (PcdGetPtr(PcdLogoFile));
|
||||
//
|
||||
// Perform system diagnostic
|
||||
//
|
||||
Status = BaseMemoryTest (MemoryTestLevel);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DisableQuietBoot ();
|
||||
}
|
||||
|
||||
return ;
|
||||
}
|
||||
//
|
||||
// Perform system diagnostic
|
||||
//
|
||||
Status = BaseMemoryTest (MemoryTestLevel);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Save the S3 boot script.
|
||||
|
||||
|
@ -1344,9 +1288,9 @@ Routine Description:
|
|||
ASSERT (BootMode == BOOT_WITH_FULL_CONFIGURATION);
|
||||
|
||||
//
|
||||
// Memory test and Logo show
|
||||
// Logo show
|
||||
//
|
||||
PlatformBdsDiagnostics (IGNORE, TRUE, BaseMemoryTest);
|
||||
EnableQuietBoot (PcdGetPtr (PcdLogoFile));
|
||||
|
||||
//
|
||||
// Perform some platform specific connect sequence
|
||||
|
|
|
@ -210,11 +210,6 @@ extern PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
|
|||
//
|
||||
// Platform BDS Functions
|
||||
//
|
||||
EFI_STATUS
|
||||
BdsMemoryTest (
|
||||
EXTENDMEM_COVERAGE_LEVEL Level
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
PlatformBdsShowProgress (
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,
|
||||
|
|
Loading…
Reference in New Issue