summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-28 16:49:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-28 16:49:36 +0000
commitbd7c547d2063a53075f2e69977bcc7cb26a2f8b9 (patch)
tree865417c2460ef2c1ba30dc25d51e8d675526131f /cpukit
parentNew file -- copied from dmv177 but same as ppcn_60x. (diff)
downloadrtems-bd7c547d2063a53075f2e69977bcc7cb26a2f8b9.tar.bz2
Closed window thanks to patch from Eric Norum.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/termios.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index fef2fce5ae..4059b544bd 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -480,13 +480,11 @@ osend (const char *buf, int len, struct rtems_termios_tty *tty)
tty->rawOutBuf[tty->rawOutBufHead] = *buf++;
tty->rawOutBufHead = newHead;
if (tty->rawOutBufState == rob_idle) {
- rtems_interrupt_enable (level);
tty->rawOutBufState = rob_busy;
- (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf[tty->rawOutBufTail], 1);
- }
- else {
- rtems_interrupt_enable (level);
+ (*tty->device.write)(tty->minor,
+ (char *)&tty->rawOutBuf[tty->rawOutBufTail], 1);
}
+ rtems_interrupt_enable (level);
len--;
}
}