Changeset 14789 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Nov 28, 2008 4:16:05 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40110
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r14742 r14789 648 648 /* bit 5 - mirrors timer 2 output condition. */ 649 649 const int fOut = pit_get_out(pThis, 2, u64Now); 650 /* bit 4 - toggled with each (DRAM?) refresh request, every 15 085 µs.651 our timer resolution is around 100-1000 µs, thus we can just flip652 on every increase of quotient by 1 653 */654 # ifdef FAKE_REFRESH_CLOCK650 /* 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 655 655 pThis->dummy_refresh_clock ^= 1; 656 656 const int fRefresh = pThis->dummy_refresh_clock; 657 #else658 const int fRefresh = (u64Now / 15085 ) & 1;659 657 #endif 660 658 /* bit 2,3 NMI / parity status stuff. */
Note:
See TracChangeset
for help on using the changeset viewer.