From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: [patch 02/34] Xen-pv_ops: ignore vgacon if hardware not present Date: Tue, 13 Mar 2007 16:30:19 -0700 Message-ID: <20070313233029.584146237@goop.org> References: <20070313233017.933601256@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline; filename=vgacon-ignore-uninitialized.patch List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.osdl.org Errors-To: virtualization-bounces@lists.osdl.org To: Andi Kleen Cc: Chris Wright , virtualization@lists.osdl.org, xen-devel@lists.xensource.com, Andrew Morton , linux-kernel@vger.kernel.org, Alan List-Id: virtualization@lists.linuxfoundation.org Avoid trying to set up vgacon if there's no vga hardware present. Signed-off-by: Jeremy Fitzhardinge From: Gerd Hoffmann Cc: Alan --- drivers/video/console/vgacon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 =3D=3D 0x0D) || /* 320x200/4 */ + if ((ORIG_VIDEO_MODE =3D=3D 0x00) || /* SCREEN_INFO not initialized */ + (ORIG_VIDEO_MODE =3D=3D 0x0D) || /* 320x200/4 */ (ORIG_VIDEO_MODE =3D=3D 0x0E) || /* 640x200/4 */ (ORIG_VIDEO_MODE =3D=3D 0x10) || /* 640x350/4 */ (ORIG_VIDEO_MODE =3D=3D 0x12) || /* 640x480/4 */ -- =