aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/sn/kernel/setup.c')
-rw-r--r--arch/ia64/sn/kernel/setup.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c
index 44bfc7f318cb..3e5ba34ac2ef 100644
--- a/arch/ia64/sn/kernel/setup.c
+++ b/arch/ia64/sn/kernel/setup.c
@@ -36,6 +36,7 @@
36#include <asm/machvec.h> 36#include <asm/machvec.h>
37#include <asm/system.h> 37#include <asm/system.h>
38#include <asm/processor.h> 38#include <asm/processor.h>
39#include <asm/vga.h>
39#include <asm/sn/arch.h> 40#include <asm/sn/arch.h>
40#include <asm/sn/addrs.h> 41#include <asm/sn/addrs.h>
41#include <asm/sn/pda.h> 42#include <asm/sn/pda.h>
@@ -273,14 +274,17 @@ void __init sn_setup(char **cmdline_p)
273 274
274 ia64_sn_plat_set_error_handling_features(); 275 ia64_sn_plat_set_error_handling_features();
275 276
277#if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE)
276 /* 278 /*
277 * If the generic code has enabled vga console support - lets 279 * If there was a primary vga adapter identified through the
278 * get rid of it again. This is a kludge for the fact that ACPI 280 * EFI PCDP table, make it the preferred console. Otherwise
279 * currtently has no way of informing us if legacy VGA is available 281 * zero out conswitchp.
280 * or not.
281 */ 282 */
282#if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE) 283
283 if (conswitchp == &vga_con) { 284 if (vga_console_membase) {
285 /* usable vga ... make tty0 the preferred default console */
286 add_preferred_console("tty", 0, NULL);
287 } else {
284 printk(KERN_DEBUG "SGI: Disabling VGA console\n"); 288 printk(KERN_DEBUG "SGI: Disabling VGA console\n");
285#ifdef CONFIG_DUMMY_CONSOLE 289#ifdef CONFIG_DUMMY_CONSOLE
286 conswitchp = &dummy_con; 290 conswitchp = &dummy_con;