Since interrupts are now enabled during ADB autoconfig, it's possible to get
a keyboard event before wskbd is attached. Make sure we've done that before passing an event to kbd_intr(), which in turn hands off to wskbd_input(). This is another part of the fix for PR 10086.
This commit is contained in:
parent
81712cf5c7
commit
cee7249423
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: akbd.c,v 1.8 2000/06/17 17:46:40 scottr Exp $ */
|
||||
/* $NetBSD: akbd.c,v 1.9 2000/06/17 18:00:47 scottr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1998 Colin Wood
|
||||
|
@ -336,6 +336,7 @@ kbd_processevent(event, ksc)
|
|||
if (adb_polling || !aed_input(&new_event))
|
||||
#endif
|
||||
#if NWSKBD > 0
|
||||
if (ksc->sc_wskbddev != NULL) /* wskbd is attached? */
|
||||
kbd_intr(&new_event);
|
||||
#else
|
||||
/* do nothing */ ;
|
||||
|
@ -348,6 +349,7 @@ kbd_processevent(event, ksc)
|
|||
if (adb_polling || !aed_input(&new_event))
|
||||
#endif
|
||||
#if NWSKBD > 0
|
||||
if (ksc->sc_wskbddev != NULL) /* wskbd is attached? */
|
||||
kbd_intr(&new_event);
|
||||
#else
|
||||
/* do nothing */ ;
|
||||
|
|
Loading…
Reference in New Issue