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/
Home Products Support Community News


[Xen-devel] [PATCH] Default serial console to BAUD_AUTO

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Default serial console to BAUD_AUTO
From: john.levon@xxxxxxx
Date: Sun, 23 Sep 2007 16:01:06 -0700
Delivery-date: Sun, 23 Sep 2007 16:03:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User john.levon@xxxxxxx
# Date 1190588448 25200
# Node ID 9a8a2d9ad94f20c995a7b59b75fdd6fefb8dafc6
# Parent  20c00448e39c7d8528e40287cafe614a5d4bdbf5
Default serial console to BAUD_AUTO

Currently, the defaults for the serial console have a baud rate of zero,
which is less than useful. Default to BAUD_AUTO instead, so you can just
specify "console=com1" and it will most likely work.

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -303,6 +303,7 @@ void __init __start_xen(multiboot_info_t
     paddr_t s, e;
     int i, e820_warn = 0, e820_raw_nr = 0, bytes = 0;
     struct ns16550_defaults ns16550 = {
+        .baud = BAUD_AUTO,
         .data_bits = 8,
         .parity    = 'n',
         .stop_bits = 1

Xen-devel mailing list