From: "Dan Doucette" Subject: [PATCH][1 of 3] GDB serial port debugging: Serial port cooked mode fix for high-bit multiplexing mode Date: Wed, 19 Dec 2007 14:38:32 -0800 Message-ID: <9dd432e50712191438g729ddc8dke81bf183292fa42f@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_17199_5743020.1198103912428" 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 ------=_Part_17199_5743020.1198103912428 Content-Type: multipart/alternative; boundary="----=_Part_17200_9589854.1198103912428" ------=_Part_17200_9589854.1198103912428 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline This patch fixes a bug in the serial driver whereby carriage returns inserted in cooked mode are not send down the high bit set stream. If you are using the xenconsole on the high-bit-set stream (com1H), this issue manifests as staircase output. % diffstat serial_patch serial.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) Signed-off-by: Dan Doucette Dan. ------=_Part_17200_9589854.1198103912428 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
This patch fixes a bug in the serial driver whereby carriage returns inserted in cooked mode are not send down the high bit set stream.
If you are using the xenconsole on the high-bit-set stream (com1H), this issue manifests as staircase output.
 
 
% diffstat serial_patch
 serial.c |   17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
 
Signed-off-by:  Dan Doucette <doucette.daniel@gmail.com>
 
Dan.
 
 
 
------=_Part_17200_9589854.1198103912428-- ------=_Part_17199_5743020.1198103912428 Content-Type: text/plain; name=serial_patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_faeg1aas0 Content-Disposition: attachment; filename=serial_patch LS0tIHhlbi11bnN0YWJsZS5oZy94ZW4vZHJpdmVycy9jaGFyL3NlcmlhbC5jCTIwMDctMTItMTkg MT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FuZGxlICYgU0VSSE5EX0NPT0tF RCkgKQotICAgICAgICAgICAgX19zZXJpYWxfcHV0Yyhwb3J0LCAnXHInKTsKKyAgICAgICAgewor ICAgICAgICAgICAgY3IgPSAnXHInOworICAgICAgICAgICAgaWYgKCBoYW5kbGUgJiBTRVJITkRf SEkgKQorICAgICAgICAgICAgICAgIGNyIHw9IDB4ODA7CisgICAgICAgICAgICBfX3NlcmlhbF9w dXRjKHBvcnQsIGNyKTsKKyAgICAgICAgfQogCiAgICAgICAgIGlmICggaGFuZGxlICYgU0VSSE5E X0hJICkKICAgICAgICAgICAgIGMgfD0gMHg4MDsK ------=_Part_17199_5743020.1198103912428 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 ------=_Part_17199_5743020.1198103912428--