VirtualBox

Changeset 34692 in vbox


Ignore:
Timestamp:
Dec 3, 2010 12:49:36 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68494
Message:

Comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r34691 r34692  
    368368    /*
    369369     * Mode 2: The period is count + 1 PIT ticks.
    370      * When the counter reaches 1 we sent the output low (for channel 0 that
    371      * means raise an irq). On the next tick, where we should be decrementing
     370     * 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
    372372     * 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).
    374374     *
    375      * In VBox we simplify the tick cycle between 1 and 0 and immediately clears
    376      * the irq. We also don't set it until we reach 0, which is a tick late - will
    377      * try fix 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.
    378378     */
    379379    case 2:
     
    427427    irq_level = pit_get_out1(s, current_time) ? PDM_IRQ_LEVEL_HIGH : PDM_IRQ_LEVEL_LOW;
    428428
    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.
    432431     */
    433432    if (!s->pPitR3->fDisabledByHpet)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette