aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cy/cy.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-12-17 18:43:08 +0000
committerBruce Evans <bde@FreeBSD.org>1998-12-17 18:43:08 +0000
commitf9828cced4415aa04af3bbdc8eb332b9b16cc1f7 (patch)
tree9a97918dba20c66a062afdf43ef1fe4ef8e2a3af /sys/dev/cy/cy.c
parent7cfc9b133eae3cf6efdd162c5b5bf7ec6b24055a (diff)
downloadsrc-f9828cced4415aa04af3bbdc8eb332b9b16cc1f7.tar.gz
src-f9828cced4415aa04af3bbdc8eb332b9b16cc1f7.zip
Fixed handling of BREAK in input. BREAK was not being converted into an
escape sequence in the `-ignbrk -brkint parmrk' case. Found by: NIST-PCTS
Notes
Notes: svn path=/head/; revision=41905
Diffstat (limited to 'sys/dev/cy/cy.c')
-rw-r--r--sys/dev/cy/cy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index ccec8091e46b..df09722e5120 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.77 1998/12/17 17:40:13 bde Exp $
+ * $Id: cy.c,v 1.78 1998/12/17 18:18:06 bde Exp $
*/
#include "opt_compat.h"
@@ -2068,8 +2068,12 @@ comparam(tp, t)
opt |= CD1400_COR4_INLCR;
#endif
if (iflag & IGNBRK)
- opt |= CD1400_COR4_IGNBRK;
- if (!(iflag & BRKINT))
+ opt |= CD1400_COR4_IGNBRK | CD1400_COR4_NOBRKINT;
+ /*
+ * The `-ignbrk -brkint parmrk' case is not handled by the hardware,
+ * so only tell the hardware about -brkint if -parmrk.
+ */
+ if (!(iflag & (BRKINT | PARMRK)))
opt |= CD1400_COR4_NOBRKINT;
#if 0
/* XXX using this "intelligence" breaks reporting of overruns. */