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-changelog

[Xen-changelog] [xen-unstable] [IA64] Fix VGA console

# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1185390567 21600
# Node ID 1ef9dc28810dc748bdbb21231061ff5f861bd04f
# Parent  fcdd56b88acdc34a392a6807fcaa6005fedf6d82
[IA64] Fix VGA console

VGA console support seems to have gotten broken somewhere along the
way.  On current bits, console=vga doesn't seem to do anything.  This
patch adds the necessary console info to get it working again.

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 xen/arch/ia64/xen/xensetup.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+)

diff -r fcdd56b88acd -r 1ef9dc28810d xen/arch/ia64/xen/xensetup.c
--- a/xen/arch/ia64/xen/xensetup.c      Thu Jul 19 20:02:04 2007 -0600
+++ b/xen/arch/ia64/xen/xensetup.c      Wed Jul 25 13:09:27 2007 -0600
@@ -18,6 +18,7 @@
 #include <xen/serial.h>
 #include <xen/trace.h>
 #include <xen/keyhandler.h>
+#include <xen/vga.h>
 #include <asm/meminit.h>
 #include <asm/page.h>
 #include <asm/setup.h>
@@ -310,6 +311,20 @@ void __init start_kernel(void)
         ns16550_init(1, &ns16550_com2);
     }
     serial_init_preirq();
+
+#ifdef CONFIG_VGA
+    /* Plug in a default VGA mode */
+    vga_console_info.video_type = XEN_VGATYPE_TEXT_MODE_3;
+    vga_console_info.u.text_mode_3.font_height = 16; /* generic VGA? */
+    vga_console_info.u.text_mode_3.cursor_x =
+                                        ia64_boot_param->console_info.orig_x;
+    vga_console_info.u.text_mode_3.cursor_y =
+                                        ia64_boot_param->console_info.orig_y;
+    vga_console_info.u.text_mode_3.rows =
+                                        ia64_boot_param->console_info.num_rows;
+    vga_console_info.u.text_mode_3.columns =
+                                        ia64_boot_param->console_info.num_cols;
+#endif
 
     init_console();
     set_printk_prefix("(XEN) ");

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Fix VGA console, Xen patchbot-unstable <=