summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-28 01:02:17 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-28 01:02:36 +0100
commitef1e38353b835ee1d5c0ff400f82cfc7b74c7649 (patch)
tree133a8b497087c96414fbdcb3d174f0f0e075d2a4 /i386
parent120847a0c4b72da43ac2764ba73548e8916b1c0d (diff)
Really default to EGA/VGA on unknown CMOS values
* i386/i386at/kd.c (kd_xga_init): Use CM_EGA_VGA behavior as default case for unknown values of CMOS data.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/kd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index d6b75af..2bb0a69 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -2512,6 +2512,9 @@ kd_xga_init(void)
outb(CMOS_ADDR, CMOS_EB);
screen = inb(CMOS_DATA) & CM_SCRMSK;
switch(screen) {
+ default:
+ printf("kd: unknown screen type, defaulting to EGA\n");
+ /* FALLTHROUGH */
case CM_EGA_VGA:
/*
* Here we'll want to query to bios on the card
@@ -2558,8 +2561,6 @@ kd_xga_init(void)
kd_lines = 25;
kd_cols = 80;
break;
- default:
- printf("kd: unknown screen type, defaulting to EGA\n");
}
outb(kd_index_reg, C_START);