[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] [PATCH] [CONSOLE] Set vga_con before using it
It seems that before the code checks the value of vga_con, any code that sets it should be run. Is this correct? Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx> Index: linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c =================================================================== --- linux-2.6.18-xen.hg.orig/arch/ia64/kernel/setup.c 2007-08-09 09:54:07.000000000 +0900 +++ linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c 2007-08-09 09:55:31.000000000 +0900 @@ -597,6 +597,24 @@ setup_arch (char **cmdline_p) acpi_boot_init(); #endif +#ifdef CONFIG_VT + if (!conswitchp) { +# if defined(CONFIG_DUMMY_CONSOLE) + conswitchp = &dummy_con; +# endif +# if defined(CONFIG_VGA_CONSOLE) + /* + * Non-legacy systems may route legacy VGA MMIO range to system + * memory. vga_con probes the MMIO hole, so memory looks like + * a VGA device to it. The EFI memory map can tell us if it's + * memory so we can avoid this problem. + */ + if (efi_mem_type(0xA0000) != EFI_CONVENTIONAL_MEMORY) + conswitchp = &vga_con; +# endif + } +#endif + #ifdef CONFIG_XEN if (is_running_on_xen()) { printk("Running on Xen! start_info_pfn=0x%lx nr_pages=%ld " @@ -648,24 +666,6 @@ setup_arch (char **cmdline_p) xencons_early_setup(); #endif -#ifdef CONFIG_VT - if (!conswitchp) { -# if defined(CONFIG_DUMMY_CONSOLE) - conswitchp = &dummy_con; -# endif -# if defined(CONFIG_VGA_CONSOLE) - /* - * Non-legacy systems may route legacy VGA MMIO range to system - * memory. vga_con probes the MMIO hole, so memory looks like - * a VGA device to it. The EFI memory map can tell us if it's - * memory so we can avoid this problem. - */ - if (efi_mem_type(0xA0000) != EFI_CONVENTIONAL_MEMORY) - conswitchp = &vga_con; -# endif - } -#endif - /* enable IA-64 Machine Check Abort Handling unless disabled */ #ifdef CONFIG_XEN if (is_running_on_xen() && !is_initial_xendomain()) { _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |