Back the last revision off, upon Bill Sommerfeld's request
This commit is contained in:
parent
780e7ac88c
commit
f6af05f407
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pccons.c,v 1.146 2001/06/02 00:01:04 jdolecek Exp $ */
|
||||
/* $NetBSD: pccons.c,v 1.147 2001/06/02 00:46:00 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -1160,21 +1160,6 @@ pccnpollc(dev, on)
|
|||
#if (NPCCONSKBD > 0)
|
||||
pckbc_set_poll(kbctag, kbcslot, on);
|
||||
#else
|
||||
|
||||
/*
|
||||
* Some kbd controllers seem to not clear the interrupt condition
|
||||
* when the status word is read, which leads to loop calling
|
||||
* pcintr(). Thus, raise interrupt level when polling.
|
||||
*/
|
||||
if (!cold) {
|
||||
static int s;
|
||||
|
||||
if (on)
|
||||
s = spltty();
|
||||
else
|
||||
splx(s);
|
||||
}
|
||||
|
||||
if (!on) {
|
||||
int unit;
|
||||
struct pc_softc *sc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pckbc.c,v 1.9 2001/06/02 00:01:04 jdolecek Exp $ */
|
||||
/* $NetBSD: pckbc.c,v 1.10 2001/06/02 00:46:00 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998
|
||||
|
@ -527,20 +527,6 @@ pckbc_set_poll(self, slot, on)
|
|||
|
||||
t->t_slotdata[slot]->polling = on;
|
||||
|
||||
/*
|
||||
* Some kbd controllers seem to not clear the interrupt condition
|
||||
* when the status word is read, which leads to loop calling
|
||||
* pckbcintr(). Thus, raise interrupt level when polling.
|
||||
*/
|
||||
if (!cold) {
|
||||
static int s;
|
||||
|
||||
if (on)
|
||||
s = spltty();
|
||||
else
|
||||
splx(s);
|
||||
}
|
||||
|
||||
if (!on) {
|
||||
int s;
|
||||
|
||||
|
|
Loading…
Reference in New Issue