>From: Gerd Truschinski <gt@g386bsd.first.gmd.de>
authorRod Grimes <rgrimes@FreeBSD.org>
Sat, 16 Oct 1993 12:50:22 +0000 (12:50 +0000)
committerRod Grimes <rgrimes@FreeBSD.org>
Sat, 16 Oct 1993 12:50:22 +0000 (12:50 +0000)
commit88fcaa7f6f900d921d533f40b0cd8bf36eb86f01
tree7c49c90f290e511ce84e3f9f20d42ccea413d6c0
parentcfca387be357c90c050c2a8104f81a2384825815
>From: Gerd Truschinski <gt@g386bsd.first.gmd.de>
Date: Fri, 15 Oct 1993 19:01:24 +0100
Description:
Every time I press the CAPS LOCK key my keyboard goes
with other machines. This problem was in the first
version of 386BSD up to now in FreeBSD and NetBSD.

Repeat-By:
Simply press the CAPS LOCK key or the NUM LOCK key.

Fix:
add a delay between the only two 'kbd_cmd's one after
another. If I take 1000 as a counter it will fail also
on a 33MHz/386 machine. I may try other fixes if you want
it. Please mention Jan <pernik@varda.ics.muni.cz> because
he had send me the fix (it was an older version of pccons.c,
but it took only five minutes to find a way for the new pccons.c)

From: Rod Grimes
Try this one instead: (it is CPU speed independent.)
Change the for spin loop into a call to DELAY(10):

>From: Gerd Truschinski <gt@g386bsd.first.gmd.de>
Date: Sat, 16 Oct 1993 02:15:11 +0100 (MET)
I tried it - edit, compile, reboot, edit, compile, reboot, edit....

I need a DELAY(10000), a DELAY(5000) didn't work.
A DELAY(10) is definatly (where is my dictionary?) to short.
May be it is better to add a new flag.

Editors Note:
Removed patch kit headers, rccsid, added $Id$.
sys/i386/isa/pccons.c