ia64/xen-unstable

changeset 15563:1ef9dc28810d

[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@hp.com>
author Alex Williamson <alex.williamson@hp.com>
date Wed Jul 25 13:09:27 2007 -0600 (2007-07-25)
parents fcdd56b88acd
children 6a89339b81d0
files xen/arch/ia64/xen/xensetup.c
line diff
     1.1 --- a/xen/arch/ia64/xen/xensetup.c	Thu Jul 19 20:02:04 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/xensetup.c	Wed Jul 25 13:09:27 2007 -0600
     1.3 @@ -18,6 +18,7 @@
     1.4  #include <xen/serial.h>
     1.5  #include <xen/trace.h>
     1.6  #include <xen/keyhandler.h>
     1.7 +#include <xen/vga.h>
     1.8  #include <asm/meminit.h>
     1.9  #include <asm/page.h>
    1.10  #include <asm/setup.h>
    1.11 @@ -311,6 +312,20 @@ void __init start_kernel(void)
    1.12      }
    1.13      serial_init_preirq();
    1.14  
    1.15 +#ifdef CONFIG_VGA
    1.16 +    /* Plug in a default VGA mode */
    1.17 +    vga_console_info.video_type = XEN_VGATYPE_TEXT_MODE_3;
    1.18 +    vga_console_info.u.text_mode_3.font_height = 16; /* generic VGA? */
    1.19 +    vga_console_info.u.text_mode_3.cursor_x =
    1.20 +                                        ia64_boot_param->console_info.orig_x;
    1.21 +    vga_console_info.u.text_mode_3.cursor_y =
    1.22 +                                        ia64_boot_param->console_info.orig_y;
    1.23 +    vga_console_info.u.text_mode_3.rows =
    1.24 +                                        ia64_boot_param->console_info.num_rows;
    1.25 +    vga_console_info.u.text_mode_3.columns =
    1.26 +                                        ia64_boot_param->console_info.num_cols;
    1.27 +#endif
    1.28 +
    1.29      init_console();
    1.30      set_printk_prefix("(XEN) ");
    1.31