Module Name: src
Committed By: tsutsui
Date: Thu Mar 10 17:13:13 UTC 2011
Modified Files:
src/sys/arch/pmax/pmax: dec_3max.c dec_3min.c
Log Message:
Set correct struct clockframe .intr value for hardclock(9).
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/pmax/pmax/dec_3max.c
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/pmax/pmax/dec_3min.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/pmax/pmax/dec_3max.c
diff -u src/sys/arch/pmax/pmax/dec_3max.c:1.52 src/sys/arch/pmax/pmax/dec_3max.c:1.53
--- src/sys/arch/pmax/pmax/dec_3max.c:1.52 Sun Feb 20 07:50:25 2011
+++ src/sys/arch/pmax/pmax/dec_3max.c Thu Mar 10 17:13:13 2011
@@ -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++;
Index: src/sys/arch/pmax/pmax/dec_3min.c
diff -u src/sys/arch/pmax/pmax/dec_3min.c:1.68 src/sys/arch/pmax/pmax/dec_3min.c:1.69
--- src/sys/arch/pmax/pmax/dec_3min.c:1.68 Sun Feb 20 07:50:25 2011
+++ src/sys/arch/pmax/pmax/dec_3min.c Thu Mar 10 17:13:13 2011
@@ -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++;
}