* [PATCH] fix serial emulation
@ 2008-08-07 17:44 Stefano Stabellini
0 siblings, 0 replies; only message in thread
From: Stefano Stabellini @ 2008-08-07 17:44 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-07 17:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07 17:44 [PATCH] fix serial emulation Stefano Stabellini
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.