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

This commit is contained in:
tsutsui 2011-03-10 17:05:41 +00:00
parent d2059d8a64
commit 8e8cc5afce
2 changed files with 6 additions and 6 deletions

View File

@ -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 @@ tr2_intr(int ppl, vaddr_t pc, uint32_t status)
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;

View File

@ -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 @@ tr2a_intr(int ppl, vaddr_t pc, uint32_t status)
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;