public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ignore vgacon if hardware not present
@ 2007-03-29  7:46 Rusty Russell
  2007-03-29 10:36 ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: Rusty Russell @ 2007-03-29  7:46 UTC (permalink / raw)
  To: Andi Kleen, Andrew Morton
  Cc: Jeremy Fitzhardinge, Gerd Hoffmann, Alan, Ingo Molnar,
	lkml - Kernel Mailing List

(Did this fall through the cracks?  I don't see it in -mm.  It's
standalone, and saves some silly code in lguest and presumably others).
==

Avoid trying to set up vgacon if there's no vga hardware present.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
From: Gerd Hoffmann <kraxel@suse.de>
Cc: Alan <alan@lxorguk.ukuu.org.uk>
Acked-by: Ingo Molnar <mingo@elte.hu>

---
 drivers/video/console/vgacon.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

===================================================================
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -372,7 +372,8 @@ static const char *vgacon_startup(void)
 	}
 
 	/* VGA16 modes are not handled by VGACON */
-	if ((ORIG_VIDEO_MODE == 0x0D) ||	/* 320x200/4 */
+	if ((ORIG_VIDEO_MODE == 0x00) ||	/* SCREEN_INFO not initialized */
+	    (ORIG_VIDEO_MODE == 0x0D) ||	/* 320x200/4 */
 	    (ORIG_VIDEO_MODE == 0x0E) ||	/* 640x200/4 */
 	    (ORIG_VIDEO_MODE == 0x10) ||	/* 640x350/4 */
 	    (ORIG_VIDEO_MODE == 0x12) ||	/* 640x480/4 */



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-30 11:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-29  7:46 [PATCH] ignore vgacon if hardware not present Rusty Russell
2007-03-29 10:36 ` Andi Kleen
2007-03-29 11:06   ` Rusty Russell
2007-03-29 12:19     ` Andi Kleen
2007-03-30  3:12       ` [PATCH] Use X86_EFLAGS_IF in x86-64/irqflags.h Rusty Russell
2007-03-30 10:12         ` Andi Kleen
2007-03-30 10:59           ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox