Subject: Re: pckbc patch
To: =?X-UNKNOWN?Q?Jarom=EDr_Dolecek?= <>
From: Bill Studenmund <>
List: tech-kern
Date: 05/17/2001 22:04:53
On Thu, 17 May 2001, Jarom=EDr Dolecek wrote:

> Hi,
> I'd like to change the pckbc and i386 pccons code to change interrupt
> level to spltty during console keyboard poll (cnpollc(1); ...
> cngetc(); ... cnpollc(0); e.g. in dev/cons.c:cngetsn() or
> dev/isa/fd.c:fd_mountroot_hook()).
> More detailed description of the exact problem I'm trying to solve is
> at followup to kern/8702 (also cc-ed tech-kern@ with the e-mail),
> though I'm not quite sure kern/8702  is actually same problem.
> I'm not quite sure this is the right thing to do here, but it seems
> to be, and fixes the problem I have with keyboard in my PS/2.
> I have not tested the change on other system yet, would do before
> the change would go into tree.

I'm not sure if the change is right, but the idea sounds fine. If you're
polling, you definitly don't want to bother with interrupts. :-)

Take care,