Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev Fix the problem where pressing a key at



details:   https://anonhg.NetBSD.org/src/rev/9aa281aa3d06
branches:  trunk
changeset: 486539:9aa281aa3d06
user:      itohy <itohy%NetBSD.org@localhost>
date:      Thu May 25 03:30:19 2000 +0000

description:
Fix the problem where pressing a key at
        scsibus0: waiting 2 seconds for devices to settle...
message during boot crashes the system.
This is because ite_filter() is called before init(8) opens the console.

diffstat:

 sys/arch/x68k/dev/ite.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 502e3e9df7b3 -r 9aa281aa3d06 sys/arch/x68k/dev/ite.c
--- a/sys/arch/x68k/dev/ite.c   Thu May 25 03:07:10 2000 +0000
+++ b/sys/arch/x68k/dev/ite.c   Thu May 25 03:30:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite.c,v 1.21 2000/03/23 06:47:32 thorpej Exp $ */
+/*     $NetBSD: ite.c,v 1.22 2000/05/25 03:30:19 itohy Exp $   */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -761,9 +761,8 @@
        struct key key;
        int s, i;
 
-       if (!kbd_ite)
+       if (!kbd_ite || !(kbd_tty = ite_tty[kbd_ite->device.dv_unit]))
                return;
-       kbd_tty = ite_tty[kbd_ite->device.dv_unit];
 
        /* have to make sure we're at spltty in here */
        s = spltty ();



Home | Main Index | Thread Index | Old Index