summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/loader
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-01-04 17:22:06 +0000
committeremaste <emaste@FreeBSD.org>2016-01-04 17:22:06 +0000
commita8b0ff721ade25215f688e760c87542c84a6651a (patch)
treeda91b6efade6249b4b709910a5340b6989f8ae75 /sys/boot/efi/loader
parenteee99444ca51cdafcde71ee1e7decd6abe8c7fa2 (diff)
downloadFreeBSD-src-a8b0ff721ade25215f688e760c87542c84a6651a.zip
FreeBSD-src-a8b0ff721ade25215f688e760c87542c84a6651a.tar.gz
loader.efi: support non-contiguous console modes
Submitted by: Toomas Soome <tsoome@me.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4760
Diffstat (limited to 'sys/boot/efi/loader')
-rw-r--r--sys/boot/efi/loader/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/efi/loader/main.c b/sys/boot/efi/loader/main.c
index fc8949e..7a40709 100644
--- a/sys/boot/efi/loader/main.c
+++ b/sys/boot/efi/loader/main.c
@@ -359,10 +359,11 @@ command_mode(int argc, char *argv[])
return (CMD_OK);
}
- for (i = 0; ; i++) {
+ printf("Current mode: %d\n", conout->Mode->Mode);
+ for (i = 0; i <= conout->Mode->MaxMode; i++) {
status = conout->QueryMode(conout, i, &cols, &rows);
if (EFI_ERROR(status))
- break;
+ continue;
printf("Mode %d: %u columns, %u rows\n", i, (unsigned)cols,
(unsigned)rows);
}
OpenPOWER on IntegriCloud