Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax Set correct struct clockframe .intr value...



details:   https://anonhg.NetBSD.org/src/rev/759e27156163
branches:  trunk
changeset: 763130:759e27156163
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Mar 10 17:13:13 2011 +0000

description:
Set correct struct clockframe .intr value for hardclock(9).

diffstat:

 sys/arch/pmax/pmax/dec_3max.c |  5 +++--
 sys/arch/pmax/pmax/dec_3min.c |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r 5057353afdd8 -r 759e27156163 sys/arch/pmax/pmax/dec_3max.c
--- a/sys/arch/pmax/pmax/dec_3max.c     Thu Mar 10 17:11:17 2011 +0000
+++ b/sys/arch/pmax/pmax/dec_3max.c     Thu Mar 10 17:13:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3max.c,v 1.52 2011/02/20 07:50:25 matt Exp $ */
+/* $NetBSD: dec_3max.c,v 1.53 2011/03/10 17:13:13 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define        __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3max.c,v 1.52 2011/02/20 07:50:25 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3max.c,v 1.53 2011/03/10 17:13:13 tsutsui Exp $");
 
 #include "dzkbd.h"
 
@@ -271,6 +271,7 @@
                        "r"(MIPS_PHYS_TO_KSEG1(KN02_SYS_CLOCK)));
                cf.pc = pc;
                cf.sr = status;
+               cf.intr = (curcpu()->ci_idepth > 1);
                hardclock(&cf);
                pmax_clock_evcnt.ev_count++;
 
diff -r 5057353afdd8 -r 759e27156163 sys/arch/pmax/pmax/dec_3min.c
--- a/sys/arch/pmax/pmax/dec_3min.c     Thu Mar 10 17:11:17 2011 +0000
+++ b/sys/arch/pmax/pmax/dec_3min.c     Thu Mar 10 17:13:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3min.c,v 1.68 2011/02/20 07:50:25 matt Exp $ */
+/* $NetBSD: dec_3min.c,v 1.69 2011/03/10 17:13:13 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define        __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.68 2011/02/20 07:50:25 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.69 2011/03/10 17:13:13 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -369,6 +369,7 @@
 
                                cf.pc = pc;
                                cf.sr = status;
+                               cf.intr = (curcpu()->ci_idepth > 1);
                                hardclock(&cf);
                                pmax_clock_evcnt.ev_count++;
                        }



Home | Main Index | Thread Index | Old Index