summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2003-04-11 00:24:09 +0000
committermickey <mickey@openbsd.org>2003-04-11 00:24:09 +0000
commit7d3bf75dc5c294e60a8e3a19d50229ceb12ff9a6 (patch)
tree4c5a3a7ba26bb89cfb02345be15d2485177a0f65
parentbindresvport() does not automatically select another port if the (diff)
downloadwireguard-openbsd-7d3bf75dc5c294e60a8e3a19d50229ceb12ff9a6.tar.xz
wireguard-openbsd-7d3bf75dc5c294e60a8e3a19d50229ceb12ff9a6.zip
count traps and interrupts
-rw-r--r--sys/arch/hppa/hppa/trap.c7
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: