- Timestamp:
- Dec 3, 2010 12:43:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r33540 r34691 425 425 return; 426 426 expire_time = pit_get_next_transition_time(s, current_time); 427 irq_level = pit_get_out1(s, current_time); 428 429 /* We just flip-flop the irq level to save that extra timer call, which isn't generally required (we haven't served it for months). */ 430 pDevIns = s->CTX_SUFF(pPit)->pDevIns; 427 irq_level = pit_get_out1(s, current_time) ? PDM_IRQ_LEVEL_HIGH : PDM_IRQ_LEVEL_LOW; 431 428 432 429 /* If PIT disabled by HPET - just disconnect ticks from interrupt controllers, and not modify … … 436 433 if (!s->pPitR3->fDisabledByHpet) 437 434 { 438 PDMDevHlpISASetIrq(pDevIns, s->irq, irq_level); 439 if (irq_level) 440 PDMDevHlpISASetIrq(pDevIns, s->irq, 0); 435 pDevIns = s->CTX_SUFF(pPit)->pDevIns; 436 437 if (s->mode == 2) 438 { 439 /* We just flip-flop the irq level to save that extra timer call, which isn't generally required (we haven't served it for years). */ 440 PDMDevHlpISASetIrq(pDevIns, s->irq, PDM_IRQ_LEVEL_FLIP_FLOP); 441 } else 442 PDMDevHlpISASetIrq(pDevIns, s->irq, irq_level); 441 443 } 442 444
Note:
See TracChangeset
for help on using the changeset viewer.