From: Christoph Egger Subject: [PATCH] xen: Make serial console work Date: Fri, 4 Jun 2010 15:23:25 +0200 Message-ID: <201006041523.25418.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_N5PCMKN+qP7KIrg" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_N5PCMKN+qP7KIrg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch makes serial console work in simulators which don't emulate an ns16550a but an ns16450. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_N5PCMKN+qP7KIrg Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_serial.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_serial.diff" diff -r 9881884f8834 xen/drivers/char/ns16550.c --- a/xen/drivers/char/ns16550.c Fri Jun 04 15:10:01 2010 +0200 +++ b/xen/drivers/char/ns16550.c Fri Jun 04 15:21:53 2010 +0200 @@ -408,7 +408,7 @@ static int __init check_existence(struct */ ns_write_reg(uart, MCR, MCR_LOOP | 0x0A); status = ns_read_reg(uart, MSR) & 0xF0; - return (status == 0x90); + return (status == 0x90 || status == 0x30); } #define PARSE_ERR(_f, _a...) \ --Boundary-00=_N5PCMKN+qP7KIrg Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_N5PCMKN+qP7KIrg--