summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-24 03:13:24 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-24 03:13:24 +0000
commitbf85c825ceebb9a7a56c13885fcfb9783d9de693 (patch)
tree75d9b18127a26d8e72f44dfae135e47fe0f9ef62 /IntelFrameworkModulePkg
parent96962f0ae4b7ce9a3cfd239bc15d9f7631078953 (diff)
downloadedk2-platforms-bf85c825ceebb9a7a56c13885fcfb9783d9de693.tar.xz
Fix BDS bug to signal ReadyToBoot event before loading the boot option.
Signed-off-by: niruiyu Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12557 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
index 372cab5972..30c48f48ee 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
@@ -655,14 +655,16 @@ BdsLibBootViaBootOption (
}
//
- // Expand USB Class or USB WWID drive path node to full device path.
+ // Signal the EVT_SIGNAL_READY_TO_BOOT event
//
- ImageHandle = BdsExpandUsbShortFormDevicePath (DevicePath);
+ EfiSignalEventReadyToBoot();
//
- // Signal the EVT_SIGNAL_READY_TO_BOOT event
+ // Expand USB Class or USB WWID device path node to be full device path of a USB
+ // device in platform then load the boot file on this full device path and get the
+ // image handle.
//
- EfiSignalEventReadyToBoot();
+ ImageHandle = BdsExpandUsbShortFormDevicePath (DevicePath);
//
// Adjust the different type memory page number just before booting
@@ -670,7 +672,6 @@ BdsLibBootViaBootOption (
//
BdsSetMemoryTypeInformationVariable ();
-
//
// Set Boot Current
//