VirtualBox

Changeset 44443 in vbox for trunk/src


Ignore:
Timestamp:
Jan 29, 2013 11:14:20 AM (12 years ago)
Author:
vboxsync
Message:

BUGZ:6570 Fixed. Split RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE/SAFE spinlocks into separated locking classes (when CONFIG_PROVE_LOCKING is enabled).

Location:
trunk/src/VBox/Runtime/r0drv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c

    r40808 r44443  
    9494    pThis->idAssertCpu  = NIL_RTCPUID;
    9595#endif
    96     spin_lock_init(&pThis->Spinlock);
     96
     97    if (fFlags == RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE)
     98        spin_lock_init(&pThis->Spinlock);
     99    else
     100        spin_lock_init(&pThis->Spinlock);
    97101
    98102    *pSpinlock = pThis;
  • trunk/src/VBox/Runtime/r0drv/mpnotification-r0drv.c

    r40806 r44443  
    277277DECLHIDDEN(int) rtR0MpNotificationInit(void)
    278278{
    279     int rc = RTSpinlockCreate((PRTSPINLOCK)&g_hRTMpNotifySpinLock, RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE, "RTR0Mp");
     279    int rc = RTSpinlockCreate((PRTSPINLOCK)&g_hRTMpNotifySpinLock, RTSPINLOCK_FLAGS_INTERRUPT_SAFE, "RTR0Mp");
    280280    if (RT_SUCCESS(rc))
    281281    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette