WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] set VGA console to 50 lines by default

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] set VGA console to 50 lines by default
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 11 Jan 2007 17:06:06 +0000
Delivery-date: Thu, 11 Jan 2007 09:04:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Now that the font loading has lived in -unstable for quite a while I'd like to
propose defaulting to a 50-line display.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: 2007-01-08/xen/drivers/video/vga.c
===================================================================
--- 2007-01-08.orig/xen/drivers/video/vga.c     2007-01-11 17:40:44.000000000 
+0100
+++ 2007-01-08/xen/drivers/video/vga.c  2007-01-11 17:41:46.000000000 +0100
@@ -557,7 +557,7 @@ static int vga_load_font(const struct fo
 
 static int vgacon_enabled = 0;
 static int vgacon_keep    = 0;
-static int vgacon_lines   = 25;
+static int vgacon_lines   = 50;
 static const struct font_desc *font;
 
 static int xpos, ypos;
@@ -585,6 +585,8 @@ void vga_init(void)
             vgacon_keep = 1;
         else if ( strncmp(p, "text-80x", 8) == 0 )
             vgacon_lines = simple_strtoul(p + 8, NULL, 10);
+        else if ( strncmp(p, "text", 4) == 0 && p[4] != '-' )
+            vgacon_lines = 0;
     }
 
     video = setup_vga();
@@ -601,17 +603,18 @@ void vga_init(void)
     case 34:
         font = &font_vga_8x14;
         break;
+    default:
+        vgacon_lines = 50;
     case 43:
     case 50:
     case 60:
         font = &font_vga_8x8;
         break;
-    default:
-        vgacon_lines = 25;
+    case 0:
         break;
     }
 
-    if ( (font != NULL) && (vga_load_font(font, vgacon_lines) < 0) )
+    if ( (font == NULL) || (vga_load_font(font, vgacon_lines) < 0) )
     {
         vgacon_lines = 25;
         font = NULL;


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] set VGA console to 50 lines by default, Jan Beulich <=