diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-28 16:49:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-28 16:49:36 +0000 |
commit | bd7c547d2063a53075f2e69977bcc7cb26a2f8b9 (patch) | |
tree | 865417c2460ef2c1ba30dc25d51e8d675526131f /cpukit/libcsupport/src | |
parent | New file -- copied from dmv177 but same as ppcn_60x. (diff) | |
download | rtems-bd7c547d2063a53075f2e69977bcc7cb26a2f8b9.tar.bz2 |
Closed window thanks to patch from Eric Norum.
Diffstat (limited to 'cpukit/libcsupport/src')
-rw-r--r-- | cpukit/libcsupport/src/termios.c | 8 |
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--; } } |