diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-13 12:07:26 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-13 12:07:26 +0000 |
commit | d18476d0dc16ea9776dfcb8d12b583ebfbc4df87 (patch) | |
tree | 9d05facd2efe97962d67f22495298a0822e6c429 /OvmfPkg | |
parent | f51c8a9de38c994bfcc5ef0ccdd689438877953c (diff) | |
download | edk2-d18476d0dc16ea9776dfcb8d12b583ebfbc4df87.tar.gz edk2-d18476d0dc16ea9776dfcb8d12b583ebfbc4df87.tar.bz2 edk2-d18476d0dc16ea9776dfcb8d12b583ebfbc4df87.zip |
ProcessCapsule() and BdsMemoryTest() are implemented in the BdsDxe module, which will be invoked at PlatformBds library.
It is not proper for a library implementation to assume the names of function in a parent module.
Instead, they must be designed as the pointers to these two BdsDxe functions and passed in.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8931 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c index 44fd0d7ed5..7c54fc5791 100644 --- a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c @@ -738,7 +738,8 @@ Returns: VOID
PlatformBdsDiagnostics (
IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,
- IN BOOLEAN QuietBoot
+ IN BOOLEAN QuietBoot,
+ IN BASEM_MEMORY_TEST BaseMemoryTest
)
/*++
@@ -753,6 +754,8 @@ Arguments: QuietBoot - Indicate if need to enable the quiet boot
+ BaseMemoryTest - A pointer to BaseMemoryTest()
+
Returns:
None.
@@ -774,7 +777,7 @@ Returns: //
// Perform system diagnostic
//
- Status = BdsMemoryTest (MemoryTestLevel);
+ Status = BaseMemoryTest (MemoryTestLevel);
if (EFI_ERROR (Status)) {
DisableQuietBoot ();
}
@@ -784,7 +787,7 @@ Returns: //
// Perform system diagnostic
//
- Status = BdsMemoryTest (MemoryTestLevel);
+ Status = BaseMemoryTest (MemoryTestLevel);
}
@@ -792,7 +795,9 @@ VOID EFIAPI
PlatformBdsPolicyBehavior (
IN OUT LIST_ENTRY *DriverOptionList,
- IN OUT LIST_ENTRY *BootOptionList
+ IN OUT LIST_ENTRY *BootOptionList,
+ IN PROCESS_CAPSULES ProcessCapsules,
+ IN BASEM_MEMORY_TEST BaseMemoryTest
)
/*++
@@ -808,6 +813,10 @@ Arguments: BootOptionList - The header of the boot option link list
+ ProcessCapsules - A pointer to ProcessCapsules()
+
+ BaseMemoryTest - A pointer to BaseMemoryTest()
+
Returns:
None.
@@ -873,7 +882,7 @@ Returns: //
// Memory test and Logo show
//
- PlatformBdsDiagnostics (IGNORE, TRUE);
+ PlatformBdsDiagnostics (IGNORE, TRUE, BaseMemoryTest);
//
// Perform some platform specific connect sequence
|