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
This commit is contained in:
@@ -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);
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user