diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-27 19:31:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-27 19:31:45 +0000 |
commit | 30d8e2d9eb115d129bbf776a5861f20d9ca37c53 (patch) | |
tree | e7c34955015f14585a7a9ad462dbbd82b64f89db /sys/arch/i386 | |
parent | a15426ecd54ac6bd38f84c977ce6e8dd09f7d5cf (diff) |
2 lines of code in most drivers, to do the timestamping; ok miod kettenis
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/isa/pccom.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/pccom.c b/sys/arch/i386/isa/pccom.c index e3e97510158..cedee9e5fa8 100644 --- a/sys/arch/i386/isa/pccom.c +++ b/sys/arch/i386/isa/pccom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccom.c,v 1.50 2006/01/01 11:59:39 miod Exp $ */ +/* $OpenBSD: pccom.c,v 1.51 2006/04/27 19:31:43 deraadt Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -1447,6 +1447,10 @@ comintr(arg) } msr = bus_space_read_1(iot, ioh, com_msr); delta = msr ^ sc->sc_msr; + + ttytstamp(tp, sc->sc_msr & MSR_CTS, msr & MSR_CTS, + sc->sc_msr & MSR_DCD, msr & MSR_DCD); + if (!ISSET(delta, MSR_DCD | MSR_CTS | MSR_RI | MSR_DSR)) continue; sc->sc_msr = msr; |