Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ews4800mips/ews4800mips Set correct struct clockfra...



details:   https://anonhg.NetBSD.org/src/rev/2068df7276a2
branches:  trunk
changeset: 763127:2068df7276a2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Mar 10 17:05:41 2011 +0000

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

diffstat:

 sys/arch/ews4800mips/ews4800mips/tr2_intr.c  |  6 +++---
 sys/arch/ews4800mips/ews4800mips/tr2a_intr.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 5bf19fa9d066 -r 2068df7276a2 sys/arch/ews4800mips/ews4800mips/tr2_intr.c
--- a/sys/arch/ews4800mips/ews4800mips/tr2_intr.c       Thu Mar 10 16:50:10 2011 +0000
+++ b/sys/arch/ews4800mips/ews4800mips/tr2_intr.c       Thu Mar 10 17:05:41 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tr2_intr.c,v 1.11 2011/02/20 07:55:20 matt Exp $       */
+/*     $NetBSD: tr2_intr.c,v 1.12 2011/03/10 17:05:41 tsutsui Exp $    */
 
 /*-
  * Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tr2_intr.c,v 1.11 2011/02/20 07:55:20 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tr2_intr.c,v 1.12 2011/03/10 17:05:41 tsutsui Exp $");
 
 #define        __INTR_PRIVATE
 #include <sys/param.h>
@@ -154,7 +154,7 @@
                if (ipending & MIPS_INT_MASK_5) {       /* CLOCK */
                        cf.pc = pc;
                        cf.sr = status;
-                       cf.intr = (curcpu()->ci_idepth > 0);
+                       cf.intr = (curcpu()->ci_idepth > 1);
 
                        *PICNIC_INT5_STATUS_REG = 0;
                        r = *PICNIC_INT5_STATUS_REG;
diff -r 5bf19fa9d066 -r 2068df7276a2 sys/arch/ews4800mips/ews4800mips/tr2a_intr.c
--- a/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c      Thu Mar 10 16:50:10 2011 +0000
+++ b/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c      Thu Mar 10 17:05:41 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tr2a_intr.c,v 1.14 2011/02/24 14:40:43 tsutsui Exp $   */
+/*     $NetBSD: tr2a_intr.c,v 1.15 2011/03/10 17:05:41 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tr2a_intr.c,v 1.14 2011/02/24 14:40:43 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tr2a_intr.c,v 1.15 2011/03/10 17:05:41 tsutsui Exp $");
 
 #define __INTR_PRIVATE
 #include <sys/param.h>
@@ -183,7 +183,7 @@
                if ((ipending & MIPS_INT_MASK_5) && (intc_cause & INTC_INT5)) {
                        cf.pc = pc;
                        cf.sr = status;
-                       cf.intr = (curcpu()->ci_idepth > 0);
+                       cf.intr = (curcpu()->ci_idepth > 1);
                        tr2a_wbflush();
                        *INTC_CLEAR_REG = 0x7c;
                        *INTC_STATUS_REG;



Home | Main Index | Thread Index | Old Index