From: Antonino A. Daplas Date: Tue, 8 May 2007 07:37:29 +0000 (-0700) Subject: fbdev: ignore VESA modes if framebuffer is disabled X-Git-Tag: v2.6.22-rc1~460 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=464bdd33e9baad9806c7adbd8dfc37081a55f27e;p=linux-2.6 fbdev: ignore VESA modes if framebuffer is disabled If the option vga= is added to the boot parameter, it will activate graphics mode, but without any framebuffer support, the user is left with an unusable display. Change the behavior such that the user is instead prompted for another mode (ala vga=ask). NOTE: People can always use vbetool to set a graphics mode if this is really desired, but the number of people doing this approaches zero. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/boot/video.S b/arch/i386/boot/video.S index 8143c9516c..5e2280cf44 100644 --- a/arch/i386/boot/video.S +++ b/arch/i386/boot/video.S @@ -496,9 +496,11 @@ mode_set: cmpb $VIDEO_FIRST_V7>>8, %ah jz setv7 +#ifdef CONFIG_FB cmpb $VIDEO_FIRST_VESA>>8, %ah jnc check_vesa - +#endif + orb %ah, %ah jz setmenu