Changeset 87760 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Feb 15, 2021 10:45:27 PM (4 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r86408 r87760 4388 4388 */ 4389 4389 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, acpiR3PmTimer, NULL /*pvUser*/, 4390 TMTIMER_FLAGS_NO_CRIT_SECT , "ACPI PM Timer", &pThis->hPmTimer);4390 TMTIMER_FLAGS_NO_CRIT_SECT | TMTIMER_FLAGS_RING0, "ACPI PM Timer", &pThis->hPmTimer); 4391 4391 AssertRCReturn(rc, rc); 4392 4392 -
trunk/src/VBox/Devices/PC/DevHPET.cpp
r86591 r87760 1465 1465 1466 1466 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, hpetR3Timer, pHpetTimer, 1467 TMTIMER_FLAGS_NO_CRIT_SECT, s_apszTimerNames[i], &pThis->aTimers[i].hTimer); 1467 TMTIMER_FLAGS_NO_CRIT_SECT | TMTIMER_FLAGS_RING0, 1468 s_apszTimerNames[i], &pThis->aTimers[i].hTimer); 1468 1469 AssertRCReturn(rc, rc); 1469 1470 /** @todo r=bird: This is TOTALLY MESSED UP! Why do we need -
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r84334 r87760 1424 1424 */ 1425 1425 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, pitR3Timer, &pThis->channels[0], 1426 TMTIMER_FLAGS_NO_CRIT_SECT, "i8254 Programmable Interval Timer", &pThis->channels[0].hTimer); 1426 TMTIMER_FLAGS_NO_CRIT_SECT | TMTIMER_FLAGS_RING0, 1427 "i8254 Programmable Interval Timer", &pThis->channels[0].hTimer); 1427 1428 AssertRCReturn(rc, rc); 1428 1429 rc = PDMDevHlpTimerSetCritSect(pDevIns, pThis->channels[0].hTimer, &pThis->CritSect); -
trunk/src/VBox/Devices/PC/DevRTC.cpp
r82968 r87760 588 588 RT_NOREF2(pTimer, pvUser); 589 589 PRTCSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PRTCSTATE); 590 Assert(pTimer == PDMDevHlpTimerToPtr(pDevIns, pThis->hPeriodicTimer));591 590 Assert(PDMDevHlpTimerIsLockOwner(pDevIns, pThis->hPeriodicTimer)); 592 591 Assert(PDMDevHlpCritSectIsOwner(pDevIns, pDevIns->CTX_SUFF(pCritSectRo))); … … 667 666 * @callback_method_impl{FNTMTIMERDEV, Second timer.} 668 667 */ 669 static DECLCALLBACK(void) rtc TimerSecond(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)668 static DECLCALLBACK(void) rtcR3TimerSecond(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 670 669 { 671 670 PRTCSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PRTCSTATE); … … 673 672 Assert(PDMDevHlpTimerIsLockOwner(pDevIns, pThis->hPeriodicTimer)); 674 673 Assert(PDMDevHlpCritSectIsOwner(pDevIns, pDevIns->CTX_SUFF(pCritSectRo))); 675 Assert(pTimer == PDMDevHlpTimerToPtr(pDevIns, pThis->hSecondTimer));676 674 RT_NOREF(pvUser, pTimer); 677 675 … … 700 698 701 699 702 /* Used by rtc_set_date and rtc TimerSecond2. */700 /* Used by rtc_set_date and rtcR3TimerSecond2. */ 703 701 static void rtc_copy_date(PRTCSTATE pThis) 704 702 { … … 730 728 * @callback_method_impl{FNTMTIMERDEV, Second2 timer.} 731 729 */ 732 static DECLCALLBACK(void) rtc TimerSecond2(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)730 static DECLCALLBACK(void) rtcR3TimerSecond2(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 733 731 { 734 732 PRTCSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PRTCSTATE); … … 736 734 Assert(PDMDevHlpTimerIsLockOwner(pDevIns, pThis->hPeriodicTimer)); 737 735 Assert(PDMDevHlpCritSectIsOwner(pDevIns, pDevIns->CTX_SUFF(pCritSectRo))); 738 Assert(pTimer == PDMDevHlpTimerToPtr(pDevIns, pThis->hSecondTimer2));739 736 RT_NOREF2(pTimer, pvUser); 740 737 … … 1159 1156 /* Periodic timer. */ 1160 1157 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, rtcTimerPeriodic, pThis, 1161 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "MC146818 RTC (CMOS) - Periodic", &pThis->hPeriodicTimer); 1158 TMTIMER_FLAGS_DEFAULT_CRIT_SECT | TMTIMER_FLAGS_RING0, 1159 "MC146818 RTC (CMOS) - Periodic", &pThis->hPeriodicTimer); 1162 1160 AssertRCReturn(rc, rc); 1163 1161 1164 1162 /* Seconds timer. */ 1165 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, rtcTimerSecond, pThis, 1166 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "MC146818 RTC (CMOS) - Second", &pThis->hSecondTimer); 1163 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, rtcR3TimerSecond, pThis, 1164 TMTIMER_FLAGS_DEFAULT_CRIT_SECT | TMTIMER_FLAGS_RING0, 1165 "MC146818 RTC (CMOS) - Second", &pThis->hSecondTimer); 1167 1166 AssertRCReturn(rc, rc); 1168 1167 1169 1168 /* The second2 timer, this is always active. */ 1170 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, rtcTimerSecond2, pThis, 1171 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "MC146818 RTC (CMOS) - Second2", &pThis->hSecondTimer2); 1169 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, rtcR3TimerSecond2, pThis, 1170 TMTIMER_FLAGS_DEFAULT_CRIT_SECT | TMTIMER_FLAGS_NO_RING0, 1171 "MC146818 RTC (CMOS) - Second2", &pThis->hSecondTimer2); 1172 1172 AssertRCReturn(rc, rc); 1173 1173
Note:
See TracChangeset
for help on using the changeset viewer.