aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2008-02-27 08:56:35 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:51 -0400
commitb8c2d3dfbc117dff26058fbac316b8acfc2cb5f7 (patch)
treeaa71137348df7b9f3bc9973095080e22f487278a /arch/x86/xen/enlighten.c
parent78a9909aab54123c7c471022389b36972e13b48e (diff)
xen: make hvc0 the preferred console in domU
This makes the Xen console just work. Before, you had to ask for it on the kernel command line with console=hvc0 Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 27ee26aedf94..198db49106b2 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -25,6 +25,7 @@
25#include <linux/mm.h> 25#include <linux/mm.h>
26#include <linux/page-flags.h> 26#include <linux/page-flags.h>
27#include <linux/highmem.h> 27#include <linux/highmem.h>
28#include <linux/console.h>
28 29
29#include <xen/interface/xen.h> 30#include <xen/interface/xen.h>
30#include <xen/interface/physdev.h> 31#include <xen/interface/physdev.h>
@@ -1228,6 +1229,9 @@ asmlinkage void __init xen_start_kernel(void)
1228 ? __pa(xen_start_info->mod_start) : 0; 1229 ? __pa(xen_start_info->mod_start) : 0;
1229 boot_params.hdr.ramdisk_size = xen_start_info->mod_len; 1230 boot_params.hdr.ramdisk_size = xen_start_info->mod_len;
1230 1231
1232 if (!is_initial_xendomain())
1233 add_preferred_console("hvc", 0, NULL);
1234
1231 /* Start the world */ 1235 /* Start the world */
1232 start_kernel(); 1236 start_kernel();
1233} 1237}