Module Name:    src
Committed By:   tsutsui
Date:           Thu Mar 10 17:40:50 UTC 2011

Modified Files:
        src/sys/arch/mips/sibyte/dev: sbtimer.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/mips/sibyte/dev/sbtimer.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/mips/sibyte/dev/sbtimer.c
diff -u src/sys/arch/mips/sibyte/dev/sbtimer.c:1.18 src/sys/arch/mips/sibyte/dev/sbtimer.c:1.19
--- src/sys/arch/mips/sibyte/dev/sbtimer.c:1.18	Sun Feb 20 07:47:39 2011
+++ src/sys/arch/mips/sibyte/dev/sbtimer.c	Thu Mar 10 17:40:50 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: sbtimer.c,v 1.18 2011/02/20 07:47:39 matt Exp $ */
+/* $NetBSD: sbtimer.c,v 1.19 2011/03/10 17:40:50 tsutsui Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -33,12 +33,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbtimer.c,v 1.18 2011/02/20 07:47:39 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbtimer.c,v 1.19 2011/03/10 17:40:50 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
+#include <sys/cpu.h>
 
 #include <mips/locore.h>
 
@@ -175,6 +176,7 @@
 
 	cf.pc = pc;
 	cf.sr = status;
+	cf.intr = (curcpu()->ci_idepth > 1);
 
 	hardclock(&cf);
 

Reply via email to