diff options
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 0e42323..916f5dd 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -1770,8 +1770,13 @@ siointr1(com) u_char int_ctl; u_char int_ctl_new; - int_ctl = inb(com->intr_ctl_port); - int_ctl_new = int_ctl; + if (COM_IIR_TXRDYBUG(com->flags)) { + int_ctl = inb(com->intr_ctl_port); + int_ctl_new = int_ctl; + } else { + int_ctl = 0; + int_ctl_new = 0; + } while (!com->gone) { if (com->pps.ppsparam.mode & PPS_CAPTUREBOTH) { |