Revision: 15900
http://sourceforge.net/p/edk2/code/15900
Author: oliviermartin
Date: 2014-08-26 10:12:06 +0000 (Tue, 26 Aug 2014)
Log Message:
-----------
ArmPlatformPkg/Bds: Fixed condition on LOAD_OPTION_CATEGORY_BOOT
The condition tries to identify if we were starting a EFI
OS Loader or EFI Application.
But LOAD_OPTION_CATEGORY_BOOT was used as a mask to check the
attributes of the boot options while it is not a mask.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Modified Paths:
--------------
trunk/edk2/ArmPlatformPkg/Bds/BootOption.c
Modified: trunk/edk2/ArmPlatformPkg/Bds/BootOption.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/Bds/BootOption.c 2014-08-26 07:46:38 UTC (rev
15899)
+++ trunk/edk2/ArmPlatformPkg/Bds/BootOption.c 2014-08-26 10:12:06 UTC (rev
15900)
@@ -39,7 +39,7 @@
LoaderType = ReadUnaligned32 ((CONST
UINT32*)&OptionalData->Header.LoaderType);
if (LoaderType == BDS_LOADER_EFI_APPLICATION) {
- if ((BootOption->Attributes & LOAD_OPTION_CATEGORY_BOOT) == 0) {
+ if ((BootOption->Attributes & LOAD_OPTION_CATEGORY) ==
LOAD_OPTION_CATEGORY_APP) {
// Need to connect every drivers to ensure no dependencies are missing
for the application
BdsConnectAllDrivers ();
}
@@ -91,7 +91,7 @@
}
} else {
// Connect all the drivers if the EFI Application is not a EFI OS Loader
- if ((BootOption->Attributes & LOAD_OPTION_CATEGORY_BOOT) == 0) {
+ if ((BootOption->Attributes & LOAD_OPTION_CATEGORY) ==
LOAD_OPTION_CATEGORY_APP) {
BdsConnectAllDrivers ();
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits