VirtualBox

Changeset 14789 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Nov 28, 2008 4:16:05 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40110
Message:

DevPit-i8254: missing decimal separator.

File:
1 edited

Legend:

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

    r14742 r14789  
    648648        /* bit 5 - mirrors timer 2 output condition. */
    649649        const int fOut = pit_get_out(pThis, 2, u64Now);
    650         /* bit 4 - toggled with each (DRAM?) refresh request, every 15085 µs.
    651                    our timer resolution is around 100-1000 µs, thus we can just flip
    652                    on every increase of quotient by 1
    653          */
    654 #ifdef FAKE_REFRESH_CLOCK
     650        /* bit 4 - toggled with each (DRAM?) refresh request, every 15.085 µs.
     651                   ASSUMES ns timer freq, see assertion above. */
     652#ifndef FAKE_REFRESH_CLOCK
     653        const int fRefresh = (u64Now / 15085) & 1;
     654#else
    655655        pThis->dummy_refresh_clock ^= 1;
    656656        const int fRefresh = pThis->dummy_refresh_clock;
    657 #else
    658         const int fRefresh = (u64Now / 15085 ) & 1;
    659657#endif
    660658        /* bit 2,3 NMI / parity status stuff. */
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