[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kernel/1432: some mf2-kbd hangs the kernel while updating leds



The following reply was made to PR kernel/1432; it has been noted by GNATS.

From: Mathias Schmocker <smat@acm.org>
To: gnats@cvs.openbsd.org, bugs@cvs.openbsd.org
Cc:  Subject: Re: kernel/1432: some mf2-kbd hangs the kernel while updating leds
Date: Tue, 17 Oct 2000 20:39:50 +0200

 You need to add one line of code at the beginning of update_led()
 for the fix to work with machines without a connected keyboard.
 
 # diff -u  pcvt_kbd.c.NEW.PR_1438 pcvt_kbd.c.NEWER
 --- pcvt_kbd.c.NEW.PR_1438      Tue Oct 10 11:10:41 2000
 +++ pcvt_kbd.c.NEWER    Tue Oct 17 20:33:03 2000
 @@ -198,6 +198,8 @@
  
         int opri, new_ledstate;
  
 +       if (!keyboard_type) return; /* allow disconnected kbd operation */
 +
         opri = spltty();
         new_ledstate = ((vsp->scroll_lock) | (vsp->num_lock * 2) |
                         (vsp->caps_lock * 4));
 ---- END OF PATCH
 Testing is everything...
 Mathias