diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-08-26 10:12:06 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-26 10:12:06 +0000 |
commit | 5c670b2119f85bebacd0b1f5c1c84a831ffd5352 (patch) | |
tree | fd22f29c78b771d59bda2015134fa7920e1d1242 | |
parent | 3abc11f65ef421ca520fa345945418312bcda279 (diff) | |
download | edk2-platforms-5c670b2119f85bebacd0b1f5c1c84a831ffd5352.tar.xz |
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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15900 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ArmPlatformPkg/Bds/BootOption.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Bds/BootOption.c b/ArmPlatformPkg/Bds/BootOption.c index aa8be74bc9..8ed636b53b 100644 --- a/ArmPlatformPkg/Bds/BootOption.c +++ b/ArmPlatformPkg/Bds/BootOption.c @@ -39,7 +39,7 @@ BootOptionStart ( 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 @@ BootOptionStart ( }
} 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 ();
}
|