From 1168e2d4ec00da6485782cae4b3022da252fd3b6 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 6 Nov 1996 17:02:38 +0000 Subject: Count only hardware interrupts in cnt.v_intr, so that the individual hardware interrupt counts add up to the total. Previously, software interrupts generated by splz() were counted in the total. These software interrupts seem to be very rare - there have apparently been 0 of them on freefall among the last 352448857 interrupts. --- sys/i386/isa/vector.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/i386/isa/vector.s') diff --git a/sys/i386/isa/vector.s b/sys/i386/isa/vector.s index 0283c2a..e386a11 100644 --- a/sys/i386/isa/vector.s +++ b/sys/i386/isa/vector.s @@ -1,6 +1,6 @@ /* * from: vector.s, 386BSD 0.1 unknown origin - * $Id: vector.s,v 1.20 1996/05/31 01:08:08 peter Exp $ + * $Id: vector.s,v 1.21 1996/10/30 22:39:04 asami Exp $ */ /* @@ -184,13 +184,13 @@ IDTVEC(vec_name) ; \ movb %al,_imen + IRQ_BYTE(irq_num) ; \ outb %al,$icu+ICU_IMR_OFFSET ; \ enable_icus ; \ - incl _cnt+V_INTR ; /* tally interrupts */ \ movl _cpl,%eax ; \ testb $IRQ_BIT(irq_num),%reg ; \ jne 2f ; \ incb _intr_nesting_level ; \ __CONCAT(Xresume,irq_num): ; \ FAKE_MCOUNT(12*4(%esp)) ; /* XXX late to avoid double count */ \ + incl _cnt+V_INTR ; /* tally interrupts */ \ movl _intr_countp + (irq_num) * 4,%eax ; \ incl (%eax) ; \ movl _cpl,%eax ; \ -- cgit v1.1