[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kernel/1432: some mf2-kbd hangs the kernel while updating leds
- To: gnats@cvs.openbsd.org, bugs@cvs.openbsd.org
- Subject: Re: kernel/1432: some mf2-kbd hangs the kernel while updating leds
- From: Mathias Schmocker <smat@acm.org>
- Date: Tue, 17 Oct 2000 20:39:50 +0200
- Organization: http://www.smat.ch/
- References: <200010051730.e95HU2M12557@cvs.openbsd.org>
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