Changeset 12989 in vbox for trunk/src/VBox/VMM/VMMAll/TMAll.cpp
- Timestamp:
- Oct 6, 2008 2:15:39 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 37424
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAll.cpp
r12549 r12989 55 55 * @param pVM Pointer to the shared VM structure. 56 56 */ 57 TMDECL(void) TMNotifyStartOfExecution(PVM pVM)57 VMMDECL(void) TMNotifyStartOfExecution(PVM pVM) 58 58 { 59 59 if (pVM->tm.s.fTSCTiedToExecution) … … 72 72 * @param pVM Pointer to the shared VM structure. 73 73 */ 74 TMDECL(void) TMNotifyEndOfExecution(PVM pVM)74 VMMDECL(void) TMNotifyEndOfExecution(PVM pVM) 75 75 { 76 76 if (pVM->tm.s.fTSCTiedToExecution) … … 89 89 * @param pVM Pointer to the shared VM structure. 90 90 */ 91 TMDECL(void) TMNotifyStartOfHalt(PVM pVM)91 VMMDECL(void) TMNotifyStartOfHalt(PVM pVM) 92 92 { 93 93 if ( pVM->tm.s.fTSCTiedToExecution … … 107 107 * @param pVM Pointer to the shared VM structure. 108 108 */ 109 TMDECL(void) TMNotifyEndOfHalt(PVM pVM)109 VMMDECL(void) TMNotifyEndOfHalt(PVM pVM) 110 110 { 111 111 if ( pVM->tm.s.fTSCTiedToExecution … … 216 216 * @thread The emulation thread. 217 217 */ 218 TMDECL(uint64_t) TMTimerPoll(PVM pVM)218 VMMDECL(uint64_t) TMTimerPoll(PVM pVM) 219 219 { 220 220 /* … … 310 310 * @thread The emulation thread. 311 311 */ 312 TMDECL(uint64_t) TMTimerPollGIP(PVM pVM, uint64_t *pu64Delta)312 VMMDECL(uint64_t) TMTimerPollGIP(PVM pVM, uint64_t *pu64Delta) 313 313 { 314 314 /* … … 413 413 * @param pTimer Timer handle as returned by one of the create functions. 414 414 */ 415 TMDECL(PTMTIMERR3) TMTimerR3Ptr(PTMTIMER pTimer)415 VMMDECL(PTMTIMERR3) TMTimerR3Ptr(PTMTIMER pTimer) 416 416 { 417 417 return (PTMTIMERR3)MMHyperCCToR3(pTimer->CTXALLSUFF(pVM), pTimer); … … 425 425 * @param pTimer Timer handle as returned by one of the create functions. 426 426 */ 427 TMDECL(PTMTIMERR0) TMTimerR0Ptr(PTMTIMER pTimer)427 VMMDECL(PTMTIMERR0) TMTimerR0Ptr(PTMTIMER pTimer) 428 428 { 429 429 return (PTMTIMERR0)MMHyperCCToR0(pTimer->CTXALLSUFF(pVM), pTimer); … … 437 437 * @param pTimer Timer handle as returned by one of the create functions. 438 438 */ 439 TMDECL(PTMTIMERRC) TMTimerRCPtr(PTMTIMER pTimer)439 VMMDECL(PTMTIMERRC) TMTimerRCPtr(PTMTIMER pTimer) 440 440 { 441 441 return (PTMTIMERRC)MMHyperCCToRC(pTimer->CTXALLSUFF(pVM), pTimer); … … 449 449 * @param pTimer Timer handle as returned by one of the create functions. 450 450 */ 451 TMDECL(int) TMTimerDestroy(PTMTIMER pTimer)451 VMMDECL(int) TMTimerDestroy(PTMTIMER pTimer) 452 452 { 453 453 int cRetries = 1000; … … 547 547 * @param u64Expire New expire time. 548 548 */ 549 TMDECL(int) TMTimerSet(PTMTIMER pTimer, uint64_t u64Expire)549 VMMDECL(int) TMTimerSet(PTMTIMER pTimer, uint64_t u64Expire) 550 550 { 551 551 STAM_PROFILE_START(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerSet), a); … … 657 657 * @param cMilliesToNext Number of millieseconds to the next tick. 658 658 */ 659 TMDECL(int) TMTimerSetMillies(PTMTIMER pTimer, uint32_t cMilliesToNext)659 VMMDECL(int) TMTimerSetMillies(PTMTIMER pTimer, uint32_t cMilliesToNext) 660 660 { 661 661 PVM pVM = pTimer->CTXALLSUFF(pVM); … … 686 686 * @param cMicrosToNext Number of microseconds to the next tick. 687 687 */ 688 TMDECL(int) TMTimerSetMicro(PTMTIMER pTimer, uint64_t cMicrosToNext)688 VMMDECL(int) TMTimerSetMicro(PTMTIMER pTimer, uint64_t cMicrosToNext) 689 689 { 690 690 PVM pVM = pTimer->CTXALLSUFF(pVM); … … 720 720 * @param cNanosToNext Number of nanoseconds to the next tick. 721 721 */ 722 TMDECL(int) TMTimerSetNano(PTMTIMER pTimer, uint64_t cNanosToNext)722 VMMDECL(int) TMTimerSetNano(PTMTIMER pTimer, uint64_t cNanosToNext) 723 723 { 724 724 PVM pVM = pTimer->CTXALLSUFF(pVM); … … 754 754 * @param pTimer Timer handle as returned by one of the create functions. 755 755 */ 756 TMDECL(int) TMTimerStop(PTMTIMER pTimer)756 VMMDECL(int) TMTimerStop(PTMTIMER pTimer) 757 757 { 758 758 STAM_PROFILE_START(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerStop), a); … … 844 844 * @param pTimer Timer handle as returned by one of the create functions. 845 845 */ 846 TMDECL(uint64_t) TMTimerGet(PTMTIMER pTimer)846 VMMDECL(uint64_t) TMTimerGet(PTMTIMER pTimer) 847 847 { 848 848 uint64_t u64; … … 879 879 * @param pTimer Timer handle as returned by one of the create functions. 880 880 */ 881 TMDECL(uint64_t) TMTimerGetFreq(PTMTIMER pTimer)881 VMMDECL(uint64_t) TMTimerGetFreq(PTMTIMER pTimer) 882 882 { 883 883 switch (pTimer->enmClock) … … 906 906 * @param pTimer Timer handle as returned by one of the create functions. 907 907 */ 908 TMDECL(uint64_t) TMTimerGetNano(PTMTIMER pTimer)908 VMMDECL(uint64_t) TMTimerGetNano(PTMTIMER pTimer) 909 909 { 910 910 return TMTimerToNano(pTimer, TMTimerGet(pTimer)); … … 918 918 * @param pTimer Timer handle as returned by one of the create functions. 919 919 */ 920 TMDECL(uint64_t) TMTimerGetMicro(PTMTIMER pTimer)920 VMMDECL(uint64_t) TMTimerGetMicro(PTMTIMER pTimer) 921 921 { 922 922 return TMTimerToMicro(pTimer, TMTimerGet(pTimer)); … … 930 930 * @param pTimer Timer handle as returned by one of the create functions. 931 931 */ 932 TMDECL(uint64_t) TMTimerGetMilli(PTMTIMER pTimer)932 VMMDECL(uint64_t) TMTimerGetMilli(PTMTIMER pTimer) 933 933 { 934 934 return TMTimerToMilli(pTimer, TMTimerGet(pTimer)); … … 945 945 * without any adjustments. 946 946 */ 947 TMDECL(uint64_t) TMTimerToNano(PTMTIMER pTimer, uint64_t u64Ticks)947 VMMDECL(uint64_t) TMTimerToNano(PTMTIMER pTimer, uint64_t u64Ticks) 948 948 { 949 949 switch (pTimer->enmClock) … … 978 978 * without any adjustments. 979 979 */ 980 TMDECL(uint64_t) TMTimerToMicro(PTMTIMER pTimer, uint64_t u64Ticks)980 VMMDECL(uint64_t) TMTimerToMicro(PTMTIMER pTimer, uint64_t u64Ticks) 981 981 { 982 982 switch (pTimer->enmClock) … … 1011 1011 * without any adjustments. 1012 1012 */ 1013 TMDECL(uint64_t) TMTimerToMilli(PTMTIMER pTimer, uint64_t u64Ticks)1013 VMMDECL(uint64_t) TMTimerToMilli(PTMTIMER pTimer, uint64_t u64Ticks) 1014 1014 { 1015 1015 switch (pTimer->enmClock) … … 1043 1043 * @remark There could be rounding and overflow errors here. 1044 1044 */ 1045 TMDECL(uint64_t) TMTimerFromNano(PTMTIMER pTimer, uint64_t u64NanoTS)1045 VMMDECL(uint64_t) TMTimerFromNano(PTMTIMER pTimer, uint64_t u64NanoTS) 1046 1046 { 1047 1047 switch (pTimer->enmClock) … … 1075 1075 * @remark There could be rounding and overflow errors here. 1076 1076 */ 1077 TMDECL(uint64_t) TMTimerFromMicro(PTMTIMER pTimer, uint64_t u64MicroTS)1077 VMMDECL(uint64_t) TMTimerFromMicro(PTMTIMER pTimer, uint64_t u64MicroTS) 1078 1078 { 1079 1079 switch (pTimer->enmClock) … … 1107 1107 * @remark There could be rounding and overflow errors here. 1108 1108 */ 1109 TMDECL(uint64_t) TMTimerFromMilli(PTMTIMER pTimer, uint64_t u64MilliTS)1109 VMMDECL(uint64_t) TMTimerFromMilli(PTMTIMER pTimer, uint64_t u64MilliTS) 1110 1110 { 1111 1111 switch (pTimer->enmClock) … … 1138 1138 * @param pTimer Timer handle as returned by one of the create functions. 1139 1139 */ 1140 TMDECL(uint64_t) TMTimerGetExpire(PTMTIMER pTimer)1140 VMMDECL(uint64_t) TMTimerGetExpire(PTMTIMER pTimer) 1141 1141 { 1142 1142 int cRetries = 1000; … … 1199 1199 * @param pTimer Timer handle as returned by one of the create functions. 1200 1200 */ 1201 TMDECL(bool) TMTimerIsActive(PTMTIMER pTimer)1201 VMMDECL(bool) TMTimerIsActive(PTMTIMER pTimer) 1202 1202 { 1203 1203 TMTIMERSTATE enmState = pTimer->enmState;
Note:
See TracChangeset
for help on using the changeset viewer.