diff options
author | Toomas Soome <tsoome@me.com> | 2017-12-21 18:30:21 +0200 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-05-14 12:52:30 -0400 |
commit | b8f90f25b92fc9ac25542c21076fda8ff8c6fa59 (patch) | |
tree | 88f49fb408d4edae23bd16083b87d761fd28bc50 | |
parent | 208e1562df6d45a86b71f40db0028ada4de4b56a (diff) | |
download | illumos-joyent-b8f90f25b92fc9ac25542c21076fda8ff8c6fa59.tar.gz |
8931 boot1.efi: scan all display modes rather than sequential try-fail way
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/boot/sys/boot/efi/boot1/boot1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/boot/sys/boot/efi/boot1/boot1.c b/usr/src/boot/sys/boot/efi/boot1/boot1.c index 9c3e11263f..f2159d95ab 100644 --- a/usr/src/boot/sys/boot/efi/boot1/boot1.c +++ b/usr/src/boot/sys/boot/efi/boot1/boot1.c @@ -597,10 +597,10 @@ efi_main(EFI_HANDLE Ximage, EFI_SYSTEM_TABLE *Xsystab) conout = ST->ConOut; conout->Reset(conout, TRUE); max_dim = best_mode = 0; - for (i = 0; ; i++) { + for (i = 0; i < conout->Mode->MaxMode; i++) { status = conout->QueryMode(conout, i, &cols, &rows); if (EFI_ERROR(status)) - break; + continue; if (cols * rows > max_dim) { max_dim = cols * rows; best_mode = i; |