Subject: Re: Console polling programming interface change (proposal)
To: None <>
From: Jaromír <>
List: tech-kern
Date: 07/20/2001 18:13:19 wrote:
> Or, to be more precise, what other solutions have you examined and why
> have they failed?

The problem I have is that the IBM PS/2 keyboard controller seems to not drop
the interrupt condition when the intr handler is invoked, and the intr
handler is called endlessly. Thus, in order to ensure this would work
also once interrupts are enabled late in boot, I need to raise spl level
in cnpollc(1).

I have tried to disable pckbc interrupts by frobbing some kbc
mode bits. That didn't help. I think it's possible to clear the interrupt
condition via some i386-specific way, but such functionality 
is not exported to MI kernel. I though about some specific hacks to handle
this by reading the keypress in pckbcintr and exporting it to
cngetc somehow, but that seemed even more quirky. Thus, I ended up
with this console polling interface change, which would make it
possible for me to implement such quirk. 

Jaromir Dolecek <>
NetBSD - just plain best OS! -=*=- Got spare MCA cards or docs? Hand me them!