Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev Fix console bell.



details:   https://anonhg.NetBSD.org/src/rev/90cce489e89b
branches:  trunk
changeset: 533670:90cce489e89b
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sat Jul 06 23:15:29 2002 +0000

description:
Fix console bell.

diffstat:

 sys/arch/hp300/dev/hil.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 2a4f32eba650 -r 90cce489e89b sys/arch/hp300/dev/hil.c
--- a/sys/arch/hp300/dev/hil.c  Sat Jul 06 22:08:30 2002 +0000
+++ b/sys/arch/hp300/dev/hil.c  Sat Jul 06 23:15:29 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hil.c,v 1.48 2002/03/17 05:44:49 gmcgarry Exp $        */
+/*     $NetBSD: hil.c,v 1.49 2002/07/06 23:15:29 gmcgarry Exp $        */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hil.c,v 1.48 2002/03/17 05:44:49 gmcgarry Exp $");                                                  
+__KERNEL_RCSID(0, "$NetBSD: hil.c,v 1.49 2002/07/06 23:15:29 gmcgarry Exp $");                                                  
 
 #include "opt_compat_hpux.h"
 #include "rnd.h"
@@ -1193,9 +1193,12 @@
        void  *v;
 {
        struct hil_softc *hilp = v;
-       struct hil_dev *hildevice = hilp->hl_addr;
+       struct hil_dev *hildevice = HILADDR;
        char db;
 
+       if (hilp != NULL)
+               hildevice = hilp->hl_addr;
+
        /* Set the autorepeat rate */
        db = ar_format(KBD_ARR);
        send_hil_cmd(hildevice, HIL_SETARR, &db, 1, NULL);
@@ -1300,7 +1303,7 @@
        HILWAIT(hilkbd_cn_device);
        WRITEHILCMD(hilkbd_cn_device, HIL_INTON);
 
-       hilkbd_cn_ops.arg = va;
+       hilkbd_cn_ops.arg = NULL;
        itekbdcnattach(&hilkbd_cn_ops, &hilkbd_cn_map);
 
        return (0);



Home | Main Index | Thread Index | Old Index