Changeset 34692 in vbox
- Timestamp:
- Dec 3, 2010 12:49:36 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68494
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r34691 r34692 368 368 /* 369 369 * Mode 2: The period is count + 1 PIT ticks. 370 * When the counter reaches 1 we se nt the output low (for channel 0 that371 * means raise an irq). On the next tick, where we should be decrementing370 * When the counter reaches 1 we set the output low (for channel 0 that 371 * means lowering IRQ0). On the next tick, where we should be decrementing 372 372 * from 1 to 0, the count is loaded and the output goes high (channel 0 373 * means clearing the irq).373 * means raising IRQ0 again and triggering timer interrupt). 374 374 * 375 * In VBox we simplify the tick cycle between 1 and 0 and immediately clears376 * the i rq. We also don't set it until we reach 0, which is a tick late - will377 * tryfix that later some day.375 * In VBox we simplify the tick cycle between 1 and 0 and immediately trigger 376 * the interrupt. We also don't set it until we reach 0, which is a tick late 377 * - will try to fix that later some day. 378 378 */ 379 379 case 2: … … 427 427 irq_level = pit_get_out1(s, current_time) ? PDM_IRQ_LEVEL_HIGH : PDM_IRQ_LEVEL_LOW; 428 428 429 /* If PIT disabled by HPET - just disconnect ticks from interrupt controllers, and not modify 430 * other moments of device functioning. 431 * @todo: is it correct? 429 /* If PIT is disabled by HPET - simply disconnect ticks from interrupt controllers, 430 * but do not modify other aspects of device operation. 432 431 */ 433 432 if (!s->pPitR3->fDisabledByHpet)
Note:
See TracChangeset
for help on using the changeset viewer.