diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-04-11 00:24:10 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-04-11 00:24:10 +0000 |
commit | c933abf77bfd8cebbda77e9ee89dddc3c0cfdee1 (patch) | |
tree | 2daa8968880fb49200023ceeb0553417ae44dbee /sys/arch/hppa | |
parent | 086008ed2f538c73c06d68f60d4c789172e19215 (diff) |
count traps and interrupts
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/trap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index 5f5351af7bb..39dd13df0cc 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.63 2003/04/07 17:09:42 mickey Exp $ */ +/* $OpenBSD: trap.c,v 1.64 2003/04/11 00:24:09 mickey Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -194,8 +194,11 @@ trap(type, frame) } } #endif - if (trapnum != T_INTERRUPT) + if (trapnum != T_INTERRUPT) { + uvmexp.traps++; mtctl(frame->tf_eiem, CR_EIEM); + } else + uvmexp.intrs++; switch (type) { case T_NONEXIST: |