Patch to fix "Console: colour ????" message to its former glory

Tom May (ftom@netcom.com)
Thu, 9 Nov 1995 20:29:49 -0800


I was wondering why 1.3.38 said my console was a "colour ????". Here
is the fix. This patch is against 1.3.39. (tga.c does not have this
problem.)

--- linux/drivers/char/vga.c.0 Wed Nov 8 12:47:56 1995
+++ linux/drivers/char/vga.c Thu Nov 9 20:20:36 1995
@@ -144,14 +144,14 @@
{
video_type = VIDEO_TYPE_EGAM;
video_mem_term = 0xb8000;
- display_desc = "EGA+";
+ strcpy(display_desc, "EGA+");
request_region(0x3b0,16,"ega");
}
else
{
video_type = VIDEO_TYPE_MDA;
video_mem_term = 0xb2000;
- display_desc = "*MDA";
+ strcpy(display_desc, "*MDA");
request_region(0x3b0,12,"mda");
request_region(0x3bf, 1,"mda");
}
@@ -170,11 +170,11 @@

if (!ORIG_VIDEO_ISVGA) {
video_type = VIDEO_TYPE_EGAC;
- display_desc = "EGA";
+ strcpy(display_desc, "EGA");
request_region(0x3c0,32,"ega");
} else {
video_type = VIDEO_TYPE_VGAC;
- display_desc = "VGA+";
+ strcpy(display_desc, "VGA+");
request_region(0x3c0,32,"vga+");

#ifdef VGA_CAN_DO_64KB
@@ -215,7 +215,7 @@
{
video_type = VIDEO_TYPE_CGA;
video_mem_term = 0xba000;
- display_desc = "*CGA";
+ strcpy(display_desc, "*CGA");
request_region(0x3d4,2,"cga");
}
}

That's all,
Tom.