Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Fix CLKF_INTR
details: https://anonhg.NetBSD.org/src/rev/b38722ae654c
branches: trunk
changeset: 762144:b38722ae654c
user: matt <matt%NetBSD.org@localhost>
date: Wed Feb 16 18:42:33 2011 +0000
description:
Fix CLKF_INTR
Add debug evcnt.
diffstat:
sys/arch/powerpc/include/cpu.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 76ec42fb0321 -r b38722ae654c sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h Wed Feb 16 18:41:48 2011 +0000
+++ b/sys/arch/powerpc/include/cpu.h Wed Feb 16 18:42:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.74 2011/01/18 01:02:54 matt Exp $ */
+/* $NetBSD: cpu.h,v 1.75 2011/02/16 18:42:33 matt Exp $ */
/*
* Copyright (C) 1999 Wolfgang Solfrank.
@@ -136,6 +136,7 @@
struct evcnt ci_ev_isi; /* user ISI traps */
struct evcnt ci_ev_isi_fatal; /* user ISI trap failures */
struct evcnt ci_ev_pgm; /* user PGM traps */
+ struct evcnt ci_ev_debug; /* user debug traps */
struct evcnt ci_ev_fpu; /* FPU traps */
struct evcnt ci_ev_fpusw; /* FPU context switch */
struct evcnt ci_ev_ali; /* Alignment traps */
@@ -323,7 +324,7 @@
#define CLKF_USERMODE(frame) (((frame)->cf_srr1 & PSL_PR) != 0)
#define CLKF_PC(frame) ((frame)->cf_srr0)
-#define CLKF_INTR(frame) ((frame)->cf_idepth >= 0)
+#define CLKF_INTR(frame) ((frame)->cf_idepth > 0)
#define LWP_PC(l) (trapframe(l)->tf_srr0)
Home |
Main Index |
Thread Index |
Old Index