1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/sysutils/xosview/files/patch-intmeter.cc
David E. O'Brien c64282cfb2 Use the correct number of interrupts on the Alpha.
Submitted by:	Alexander Langer <alex@big.endian.de>
PR:		19064
2000-06-10 21:33:18 +00:00

25 lines
734 B
C++

--- bsd/intmeter.cc.orig Sat Jun 10 17:37:21 2000
+++ bsd/intmeter.cc Sat Jun 10 17:37:51 2000
@@ -22,9 +22,9 @@
// out the door.
// Same goes for platforms (like Alpha) with more than 16
// interrupts.
- : BitMeter( parent, "INTS", "IRQs", 16 /*BSDNumInts()*/,
+ : BitMeter( parent, "INTS", "IRQs", BSDNumInts(),
dolegends, dousedlegends ) {
- for ( int i = 0 ; i < 16 ; i++ )
+ for ( int i = 0 ; i < BSDNumInts(); i++ )
irqs_[i] = lastirqs_[i] = 0;
}
@@ -34,7 +34,7 @@
void IntMeter::checkevent( void ){
getirqs();
- for ( int i = 0 ; i < 16 ; i++ ){
+ for ( int i = 0 ; i < BSDNumInts() ; i++ ){
bits_[i] = ((irqs_[i] - lastirqs_[i]) != 0);
lastirqs_[i] = irqs_[i];
}