svn commit: r293165 - head/sys/boot/efi/loader
Ed Maste
emaste at FreeBSD.org
Mon Jan 4 17:22:07 UTC 2016
Author: emaste
Date: Mon Jan 4 17:22:06 2016
New Revision: 293165
URL: https://svnweb.freebsd.org/changeset/base/293165
Log:
loader.efi: support non-contiguous console modes
Submitted by: Toomas Soome <tsoome at me.com>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D4760
Modified:
head/sys/boot/efi/loader/main.c
Modified: head/sys/boot/efi/loader/main.c
==============================================================================
--- head/sys/boot/efi/loader/main.c Mon Jan 4 17:17:06 2016 (r293164)
+++ head/sys/boot/efi/loader/main.c Mon Jan 4 17:22:06 2016 (r293165)
@@ -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);
}
More information about the svn-src-all
mailing list