Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/vr register VRIP_INTR_BAT handler to vrip_i...



details:   https://anonhg.NetBSD.org/src/rev/0ccf41acc65f
branches:  trunk
changeset: 511161:0ccf41acc65f
user:      sato <sato%NetBSD.org@localhost>
date:      Wed Jun 13 16:05:59 2001 +0000

description:
register VRIP_INTR_BAT handler to vrip_intr_establish().

diffstat:

 sys/arch/hpcmips/vr/vrpmu.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r d3ed2698969e -r 0ccf41acc65f sys/arch/hpcmips/vr/vrpmu.c
--- a/sys/arch/hpcmips/vr/vrpmu.c       Wed Jun 13 15:41:53 2001 +0000
+++ b/sys/arch/hpcmips/vr/vrpmu.c       Wed Jun 13 16:05:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vrpmu.c,v 1.9 2000/09/25 03:51:28 sato Exp $   */
+/*     $NetBSD: vrpmu.c,v 1.10 2001/06/13 16:05:59 sato Exp $  */
 
 /*
  * Copyright (c) 1999 M. Warner Losh.  All rights reserved.
@@ -35,6 +35,7 @@
 #include <machine/config_hook.h>
 
 #include <hpcmips/vr/vripvar.h>
+#include <hpcmips/vr/vripreg.h>
 #include <hpcmips/vr/vrpmuvar.h>
 #include <hpcmips/vr/vrpmureg.h>
 
@@ -133,6 +134,11 @@
                printf (": can't map interrupt line.\n");
                return;
        }
+       if (!vrip_intr_establish(va->va_vc, VRIP_INTR_BAT, IPL_TTY,
+                                 vrpmu_intr, sc)) {
+               printf (": can't map interrupt line.\n");
+               return;
+       }
 
        printf("\n");
        /* dump current intrrupt states */



Home | Main Index | Thread Index | Old Index