summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PlatformBootManagerLib
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-04-21 14:25:53 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-05-04 08:47:43 +0800
commite64a2ebe7d46a68e57404ab7bbd6ab9710ce26f1 (patch)
tree1bf875c23710d760f5b29e982af8085a038d2b9c /OvmfPkg/Library/PlatformBootManagerLib
parent30edcbf5d15b27a88c5bc75f029958258401e959 (diff)
downloadedk2-e64a2ebe7d46a68e57404ab7bbd6ab9710ce26f1.tar.gz
edk2-e64a2ebe7d46a68e57404ab7bbd6ab9710ce26f1.tar.bz2
edk2-e64a2ebe7d46a68e57404ab7bbd6ab9710ce26f1.zip
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>
Diffstat (limited to 'OvmfPkg/Library/PlatformBootManagerLib')
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c60
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h5
2 files changed, 2 insertions, 63 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 08437aa4f8..cf774a16a7 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -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
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h
index 5e46300e44..44b7c0d460 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h
@@ -211,11 +211,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,
EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,