Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/dev Since interrupts are now enabled during ...



details:   https://anonhg.NetBSD.org/src/rev/50fe87598af4
branches:  trunk
changeset: 488080:50fe87598af4
user:      scottr <scottr%NetBSD.org@localhost>
date:      Sat Jun 17 18:00:47 2000 +0000

description:
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.

diffstat:

 sys/arch/mac68k/dev/akbd.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r d5589cb7962c -r 50fe87598af4 sys/arch/mac68k/dev/akbd.c
--- a/sys/arch/mac68k/dev/akbd.c        Sat Jun 17 17:59:28 2000 +0000
+++ b/sys/arch/mac68k/dev/akbd.c        Sat Jun 17 18:00:47 2000 +0000
@@ -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,7 +336,8 @@
        if (adb_polling || !aed_input(&new_event))
 #endif
 #if NWSKBD > 0
-               kbd_intr(&new_event);
+               if (ksc->sc_wskbddev != NULL) /* wskbd is attached? */
+                       kbd_intr(&new_event);
 #else
                /* do nothing */ ;
 #endif
@@ -348,7 +349,8 @@
                if (adb_polling || !aed_input(&new_event))
 #endif
 #if NWSKBD > 0
-                       kbd_intr(&new_event);
+                       if (ksc->sc_wskbddev != NULL) /* wskbd is attached? */
+                               kbd_intr(&new_event);
 #else
                        /* do nothing */ ;
 #endif



Home | Main Index | Thread Index | Old Index