diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-13 12:04:24 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-13 12:04:24 +0000 |
commit | a798a789068ae448f6236f68f5bc28b0fe523385 (patch) | |
tree | 16675bc24974f7fcff1c01fda27e84adb94fe770 /IntelFrameworkModulePkg/Universal | |
parent | 03a2bbf3a1a1d28b5e29572cbe6cb6fc69339659 (diff) | |
download | edk2-a798a789068ae448f6236f68f5bc28b0fe523385.tar.gz edk2-a798a789068ae448f6236f68f5bc28b0fe523385.tar.bz2 edk2-a798a789068ae448f6236f68f5bc28b0fe523385.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@8929 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c | 5 | ||||
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c index 055a52df1b..25b5c63474 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c @@ -40,6 +40,9 @@ UINT16 *mBootNext = NULL; EFI_HANDLE mBdsImageHandle;
+extern EFI_STATUS BdsMemoryTest (EXTENDMEM_COVERAGE_LEVEL Level);
+extern EFI_STATUS ProcessCapsules (EFI_BOOT_MODE BootMode);
+
/**
Install Boot Device Selection Protocol
@@ -347,7 +350,7 @@ BdsEntry ( //
// Setup some platform policy here
//
- PlatformBdsPolicyBehavior (&DriverOptionList, &BootOptionList);
+ PlatformBdsPolicyBehavior (&DriverOptionList, &BootOptionList, ProcessCapsules, BdsMemoryTest);
PERF_END (0, "PlatformBds", "BDS", 0);
//
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c b/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c index 59759509e2..19a505e2b7 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c @@ -193,15 +193,13 @@ PlatformBdsShowProgress ( }
/**
-
Perform the memory test base on the memory test intensive level,
and update the memory resource.
+ @param Level The memory test intensive level.
- @param Level The memory test intensive level.
-
- @retval EFI_STATUS Success test all the system memory and update
- the memory resource
+ @retval EFI_STATUS Success test all the system memory and update
+ the memory resource
**/
EFI_STATUS
|