From 22ead5c995624f08d37d8924f36e9458f8f0d213 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 4 Feb 2001 07:48:18 +0000 Subject: * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if UART_FIFO_WORKS is defined. Otherwise use outportb. From Francisco Pastor --- gdb/ser-go32.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/ser-go32.c') diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c index 8a19dd4e880..ec1c3e0952b 100644 --- a/gdb/ser-go32.c +++ b/gdb/ser-go32.c @@ -796,9 +796,16 @@ dos_write (serial_t scb, const char *str, int len) /* send the data, fifosize bytes at a time */ cnt = fifosize > len ? len : fifosize; port->txbusy = 1; + /* Francisco Pastor 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 -- cgit v1.2.1