From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: [PATCH] fix serial emulation
Date: Thu, 07 Aug 2008 18:44:52 +0100 [thread overview]
Message-ID: <489B3494.6020008@eu.citrix.com> (raw)
There is a small bug on the serial emulation code that prevents kgdb
from working correctly over the serial.
This patch fixes it.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
diff --git a/hw/serial.c b/hw/serial.c
index d090a2b..8e161dd 100644
--- a/hw/serial.c
+++ b/hw/serial.c
@@ -219,7 +219,7 @@ static void serial_update_irq(SerialState *s)
} else if ( s->timeout_ipending ) {
tmp_iir = UART_IIR_CTI;
} else if ( ( s->ier & UART_IER_RDI ) && (s->lsr & UART_LSR_DR ) ) {
- if ( !(s->iir & UART_FCR_FE) ) {
+ if ( !(s->fcr & UART_FCR_FE) ) {
tmp_iir = UART_IIR_RDI;
} else if ( s->recv_fifo.count >= s->recv_fifo.itl ) {
tmp_iir = UART_IIR_RDI;
reply other threads:[~2008-08-07 17:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=489B3494.6020008@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.