Changeset 24181 in vbox
- Timestamp:
- Oct 30, 2009 10:51:56 AM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r23316 r24181 625 625 626 626 rc = -EINVAL; 627 RTR0Term ();627 RTR0TermForced(); 628 628 } 629 629 else … … 686 686 */ 687 687 supdrvDeleteDevExt(&g_DevExt); 688 RTR0Term ();688 RTR0TermForced(); 689 689 } 690 690 -
trunk/src/VBox/Runtime/common/misc/cache.cpp
r21337 r24181 195 195 RTDECL(int) RTCacheRequest(PRTOBJCACHE pCache, void **ppObj) 196 196 { 197 RTSPINLOCKTMP spinlockTmp ;197 RTSPINLOCKTMP spinlockTmp = RTSPINLOCKTMP_INITIALIZER; 198 198 199 199 if (pCache->SpinlockRequest != NIL_RTSPINLOCK) … … 264 264 RTDECL(int) RTCacheInsert(PRTOBJCACHE pCache, void *pObj) 265 265 { 266 RTSPINLOCKTMP spinlockTmp ;266 RTSPINLOCKTMP spinlockTmp = RTSPINLOCKTMP_INITIALIZER; 267 267 int rc = VINF_SUCCESS; 268 268 -
trunk/src/VBox/Runtime/common/misc/handletable.cpp
r21337 r24181 131 131 { 132 132 PRTHANDLETABLEINT pThis; 133 RTSPINLOCKTMP Tmp ;133 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 134 134 uint32_t i1; 135 135 uint32_t i; -
trunk/src/VBox/Runtime/common/misc/handletablectx.cpp
r21337 r24181 50 50 { 51 51 PRTHANDLETABLEINT pThis; 52 RTSPINLOCKTMP Tmp ;52 RTSPINLOCKTMP Tmp /*= no init */; 53 53 int rc; 54 54 … … 227 227 PRTHTENTRYCTX pEntry; 228 228 PRTHANDLETABLEINT pThis; 229 RTSPINLOCKTMP Tmp ;229 RTSPINLOCKTMP Tmp /*= no init */; 230 230 231 231 /* validate the input */ … … 271 271 PRTHTENTRYCTX pEntry; 272 272 PRTHANDLETABLEINT pThis; 273 RTSPINLOCKTMP Tmp ;273 RTSPINLOCKTMP Tmp /*= no init */; 274 274 275 275 /* validate the input */ -
trunk/src/VBox/Runtime/common/misc/handletablesimple.cpp
r21337 r24181 61 61 * Allocation loop. 62 62 */ 63 RTSPINLOCKTMP Tmp ;63 RTSPINLOCKTMP Tmp /*= no init */; 64 64 rtHandleTableLock(pThis, &Tmp); 65 65 … … 217 217 218 218 /* acquire the lock */ 219 RTSPINLOCKTMP Tmp ;219 RTSPINLOCKTMP Tmp /*= no init */; 220 220 rtHandleTableLock(pThis, &Tmp); 221 221 … … 258 258 259 259 /* acquire the lock */ 260 RTSPINLOCKTMP Tmp ;260 RTSPINLOCKTMP Tmp /*= no init */; 261 261 rtHandleTableLock(pThis, &Tmp); 262 262 -
trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
r21337 r24181 457 457 static int rtTimerLnxStartAll(PRTTIMER pTimer, PRTTIMERLINUXSTARTONCPUARGS pArgs) 458 458 { 459 RTSPINLOCKTMP Tmp ;459 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 460 460 RTCPUID iCpu; 461 461 RTCPUSET OnlineSet; … … 525 525 static int rtTimerLnxStopAll(PRTTIMER pTimer) 526 526 { 527 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 527 528 RTCPUID iCpu; 528 RTSPINLOCKTMP Tmp;529 529 530 530 … … 587 587 && pTimer->u32Magic == RTTIMER_MAGIC) 588 588 { 589 RTSPINLOCKTMP Tmp ;589 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 590 590 RTSpinlockAcquire(hSpinlock, &Tmp); 591 591 … … 613 613 static DECLCALLBACK(void) rtTimerLinuxMpEvent(RTMPEVENT enmEvent, RTCPUID idCpu, void *pvUser) 614 614 { 615 PRTTIMER pTimer = (PRTTIMER)pvUser;615 PRTTIMER pTimer = (PRTTIMER)pvUser; 616 616 PRTTIMERLNXSUBTIMER pSubTimer = &pTimer->aSubTimers[idCpu]; 617 RTSPINLOCK hSpinlock;618 RTSPINLOCKTMP Tmp;617 RTSPINLOCK hSpinlock; 618 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 619 619 620 620 Assert(idCpu < pTimer->cCpus); -
trunk/src/VBox/VMM/VMMR0/PGMR0DynMap.cpp
r22890 r24181 1288 1288 { 1289 1289 #ifdef VBOX_WITH_STATISTICS 1290 PVMCPU pVCpu= VMMGetCpu(pVM);1290 PVMCPU pVCpu = VMMGetCpu(pVM); 1291 1291 #endif 1292 RTSPINLOCKTMP Tmp= RTSPINLOCKTMP_INITIALIZER;1292 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 1293 1293 RTSpinlockAcquire(pThis->hSpinlock, &Tmp); 1294 1294 AssertMsg(!(HCPhys & PAGE_OFFSET_MASK), ("HCPhys=%RHp\n", HCPhys)); … … 1390 1390 * Basic pool stuff that doesn't require any lock, just assumes we're a user. 1391 1391 */ 1392 PPGMR0DYNMAP pThis= g_pPGMR0DynMap;1392 PPGMR0DYNMAP pThis = g_pPGMR0DynMap; 1393 1393 if (!pThis) 1394 1394 return VINF_SUCCESS; … … 1399 1399 1400 1400 1401 int rc= VINF_SUCCESS;1402 RTSPINLOCKTMP Tmp= RTSPINLOCKTMP_INITIALIZER;1401 int rc = VINF_SUCCESS; 1402 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 1403 1403 RTSpinlockAcquire(pThis->hSpinlock, &Tmp); 1404 1404 … … 1530 1530 && RT_LIKELY(cEntries <= RT_ELEMENTS(pSet->aEntries))) 1531 1531 { 1532 PPGMR0DYNMAP pThis = g_pPGMR0DynMap;1533 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;1532 PPGMR0DYNMAP pThis = g_pPGMR0DynMap; 1533 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 1534 1534 RTSpinlockAcquire(pThis->hSpinlock, &Tmp); 1535 1535 … … 1635 1635 if (i != 0 && RT_LIKELY(i <= RT_ELEMENTS(pSet->aEntries))) 1636 1636 { 1637 PPGMR0DYNMAP pThis = g_pPGMR0DynMap;1638 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;1637 PPGMR0DYNMAP pThis = g_pPGMR0DynMap; 1638 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 1639 1639 RTSpinlockAcquire(pThis->hSpinlock, &Tmp); 1640 1640
Note:
See TracChangeset
for help on using the changeset viewer.