This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Fix ser-go32.c for UARTs with FIFOs.
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: Fix ser-go32.c for UARTs with FIFOs.
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Sun, 4 Feb 2001 09:48:49 +0200 (IST)
- cc: Francisco Pastor <fpastor dot etra-id at etra dot es>
FYI: I committed today the following patch:
2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
* ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
UART_FIFO_WORKS is defined. Otherwise use outportb.
From Francisco Pastor <fpastor.etra-id@etra.es>
--- gdb/ser-go32.c~0 Sun Jul 30 04:48:26 2000
+++ gdb/ser-go32.c Sat Feb 3 19:49:06 2001
@@ -796,9 +796,16 @@ dos_write (serial_t scb, const char *str
/* send the data, fifosize bytes at a time */
cnt = fifosize > len ? len : fifosize;
port->txbusy = 1;
+ /* Francisco Pastor <fpastor.etra-id@etra.es> says OUTSB messes
+ up the communications with UARTs with FIFOs. */
+#ifdef UART_FIFO_WORKS
outportsb (port->base + com_data, str, cnt);
str += cnt;
len -= cnt;
+#else
+ for ( ; cnt > 0; cnt--, len--)
+ outportb (port->base + com_data, *str++);
+#endif
#ifdef DOS_STATS
cnts[CNT_TX] += cnt;
#endif