Changeset 5463 in vbox
- Timestamp:
- Oct 24, 2007 3:11:06 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 25637
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/time.h
r5461 r5463 746 746 DECLCALLBACKMEMBER(uint64_t, pfnRediscover)(PRTTIMENANOTSDATA pData); 747 747 748 /** Just a dummy alignment member. */ 749 void *pvDummy; 750 748 751 /** Number of 1ns steps because of overshooting the period. */ 749 752 uint32_t c1nsSteps; … … 756 759 } RTTIMENANOTSDATA; 757 760 761 #ifndef IN_RING3 758 762 /** 759 763 * The Ring-3 layout of the RTTIMENANOTSDATA structure. … … 764 768 DECLR3CALLBACKMEMBER(void, pfnBad,(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS)); 765 769 DECLR3CALLBACKMEMBER(uint64_t, pfnRediscover,(PRTTIMENANOTSDATA pData)); 770 RTR3PTR pvDummy; 766 771 uint32_t c1nsSteps; 767 772 uint32_t cExpired; … … 769 774 uint32_t cUpdateRaces; 770 775 } RTTIMENANOTSDATAR3; 771 776 #else 777 typedef RTTIMENANOTSDATA RTTIMENANOTSDATAR3; 778 #endif 779 780 #ifndef IN_RING0 772 781 /** 773 782 * The Ring-3 layout of the RTTIMENANOTSDATA structure. … … 778 787 DECLR0CALLBACKMEMBER(void, pfnBad,(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS)); 779 788 DECLR0CALLBACKMEMBER(uint64_t, pfnRediscover,(PRTTIMENANOTSDATA pData)); 789 RTR0PTR pvDummy; 780 790 uint32_t c1nsSteps; 781 791 uint32_t cExpired; … … 783 793 uint32_t cUpdateRaces; 784 794 } RTTIMENANOTSDATAR0; 785 795 #else 796 typedef RTTIMENANOTSDATA RTTIMENANOTSDATAR0; 797 #endif 798 799 #ifndef IN_GC 786 800 /** 787 801 * The GC layout of the RTTIMENANOTSDATA structure. … … 792 806 DECLGCCALLBACKMEMBER(void, pfnBad,(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS)); 793 807 DECLGCCALLBACKMEMBER(uint64_t, pfnRediscover,(PRTTIMENANOTSDATA pData)); 808 RTGCPTR pvDummy; 794 809 uint32_t c1nsSteps; 795 810 uint32_t cExpired; … … 797 812 uint32_t cUpdateRaces; 798 813 } RTTIMENANOTSDATAGC; 814 #else 815 typedef RTTIMENANOTSDATA RTTIMENANOTSDATAGC; 816 #endif 799 817 800 818 /** Internal RTTimeNanoTS worker (assembly). */ -
trunk/src/VBox/Runtime/common/time/timesup.cpp
r5461 r5463 56 56 /* .pfnBad = */ rtTimeNanoTSInternalBitch, 57 57 /* .pfnRediscover = */ rtTimeNanoTSInternalRediscover, 58 /* .pvDummy = */ NULL, 58 59 /* .c1nsSteps = */ 0, 59 60 /* .cExpired = */ 0, … … 115 116 return rtTimeNanoTSInternalRediscover(pData); 116 117 NOREF(pData); 118 #if defined(IN_RING3) /** @todo Add ring-0 RTTimeSystemNanoTS to all hosts. */ 117 119 return RTTimeSystemNanoTS(); 120 #else 121 return 0; 122 #endif 118 123 } 119 124 -
trunk/src/VBox/Runtime/common/time/timesupA.asm
r5461 r5463 28 28 .pfnBad RTCCPTR_RES 1 29 29 .pfnRediscover RTCCPTR_RES 1 30 .pvDummy RTCCPTR_RES 1 30 31 .c1nsSteps resd 1 31 32 .cExpired resd 1
Note:
See TracChangeset
for help on using the changeset viewer.