Skip to content

Commit

Permalink
Move changes to release/202302
Browse files Browse the repository at this point in the history
  • Loading branch information
apop5 committed Jul 11, 2023
1 parent fa1c617 commit ae9059d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions MdeModulePkg/Universal/BdsDxe/BdsEntry.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,17 +390,8 @@ BootBootOptions (
//
// Attempt boot each boot option
//
// MU_CHANGE [BEGINS]- Support infinite boot retries
for (Index = 0; ; Index++) {
if (Index == BootOptionCount) {
if (PcdGetBool (PcdSupportInfiniteBootRetries)) {
Index = 0;
} else {
break;
}
}

// MU_CHANGE [ENDS]- Support infinite boot retries
for (Index = 0; Index < BootOptionCount; Index++) {

//
// According to EFI Specification, if a load option is not marked
Expand Down Expand Up @@ -1125,7 +1116,7 @@ BdsEntry (
BootSuccess = BootBootOptions (LoadOptions, LoadOptionCount, (BootManagerMenuStatus != EFI_NOT_FOUND) ? &BootManagerMenu : NULL);
EfiBootManagerFreeLoadOptions (LoadOptions, LoadOptionCount);
}
} while (BootSuccess);
} while (BootSuccess || PcdGetBool (PcdSupportInfiniteBootRetries)); // MU_CHANGE add PcdSupportInfiniteBootRetries support
}

if (BootManagerMenuStatus != EFI_NOT_FOUND) {
Expand Down

0 comments on commit ae9059d

Please sign in to comment.