VirtualBox

Changeset 43369 in vbox


Ignore:
Timestamp:
Sep 20, 2012 1:09:46 PM (12 years ago)
Author:
vboxsync
Message:

Additions/Haiku: build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxDev-haiku.c

    r43368 r43369  
    129129{
    130130    PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)cookie;
    131     RTSPINLOCKTMP tmp;
    132131    Log(("VBoxGuestHaikuClose: pSession=%p\n", pSession));
    133132
    134     RTSpinlockAcquireNoInts(g_DevExt.SessionSpinlock, &tmp);
     133    /** @todo r=ramshankar: should we really be using the session spinlock here? */
     134    RTSpinlockAcquire(g_DevExt.SessionSpinlock);
    135135
    136136    //XXX: we don't know if it belongs to this session !
     
    144144    }
    145145
    146     RTSpinlockReleaseNoInts(g_DevExt.SessionSpinlock, &tmp);
     146    RTSpinlockRelease(g_DevExt.SessionSpinlock);
    147147
    148148    return 0;
     
    205205    if (RT_UNLIKELY(len > _1M * 16))
    206206    {
    207         dprintf(DRIVER_NAME ": VBoxGuestHaikuIOCtl: bad size %#x; pArg=%p Cmd=%lu.\n", len, data, op);
     207        dprintf(DRIVER_NAME ": VBoxGuestHaikuIOCtl: bad size %#x; pArg=%p Cmd=%lu.\n", (unsigned)len, data, op);
    208208        return EINVAL;
    209209    }
     
    276276{
    277277    PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)cookie;
    278     RTSPINLOCKTMP tmp;
    279278    status_t err = B_OK;
    280279    //dprintf(DRIVER_NAME "select(,%d,%p)\n", event, sync);
     
    290289    }
    291290
    292     RTSpinlockAcquireNoInts(g_DevExt.SessionSpinlock, &tmp);
     291    RTSpinlockAcquire(g_DevExt.SessionSpinlock);
    293292
    294293    uint32_t u32CurSeq = ASMAtomicUoReadU32(&g_DevExt.u32MousePosChangedSeq);
     
    312311    }
    313312
    314     RTSpinlockReleaseNoInts(g_DevExt.SessionSpinlock, &tmp);
     313    RTSpinlockRelease(g_DevExt.SessionSpinlock);
    315314
    316315    return err;
     
    348347{
    349348    PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)cookie;
    350     RTSPINLOCKTMP tmp;
    351349    status_t err = B_OK;
    352350    //dprintf(DRIVER_NAME "deselect(,%d,%p)\n", event, sync);
    353351
    354     RTSpinlockAcquireNoInts(g_DevExt.SessionSpinlock, &tmp);
     352    RTSpinlockAcquire(g_DevExt.SessionSpinlock);
    355353
    356354    if (sState.selectSync == sync)
     
    364362        err = B_OK;
    365363
    366     RTSpinlockReleaseNoInts(g_DevExt.SessionSpinlock, &tmp);
     364    RTSpinlockRelease(g_DevExt.SessionSpinlock);
    367365    return err;
    368366}
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