Minor fix to raise/lower irq code.
This commit is contained in:
parent
05983c7a48
commit
dcdc5b2624
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: pit_wrap.cc,v 1.12 2002-01-31 17:18:38 yakovlev Exp $
|
||||
// $Id: pit_wrap.cc,v 1.13 2002-01-31 17:26:26 yakovlev Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -377,11 +377,15 @@ bx_pit_c::periodic( Bit32u usec_delta )
|
||||
}
|
||||
BX_PIT_THIS s.timer.clock_all(timedelta);
|
||||
if ( (prev_timer0_out==0) ) {
|
||||
if ((BX_PIT_THIS s.timer.read_OUT(0))==1)
|
||||
if ((BX_PIT_THIS s.timer.read_OUT(0))==1) {
|
||||
bx_pic.raise_irq(0);
|
||||
prev_timer0_out=1;
|
||||
}
|
||||
} else {
|
||||
if ((BX_PIT_THIS s.timer.read_OUT(0))==0)
|
||||
if ((BX_PIT_THIS s.timer.read_OUT(0))==0) {
|
||||
bx_pic.lower_irq(0);
|
||||
prev_timer0_out=0;
|
||||
}
|
||||
}
|
||||
prev_timer0_out=BX_PIT_THIS s.timer.read_OUT(0);
|
||||
ticks_delta-=timedelta;
|
||||
|
Loading…
x
Reference in New Issue
Block a user