VirtualBox

Ignore:
Timestamp:
Apr 15, 2009 8:57:11 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45982
Message:

Runtime/R0/FreeBSD: Use msleep_spin instead of msleep because the mutex is a spinlock and the kernel panics if msleep is used

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/freebsd/semevent-r0drv-freebsd.c

    r8245 r18919  
    183183        ASMAtomicIncU32(&pEventInt->cWaiters);
    184184
    185         rc = msleep(pEventInt,          /* block id */
    186                     &pEventInt->Mtx,
    187                     fInterruptible ? PZERO | PCATCH : PZERO,
    188                     "iprtev",           /* max 6 chars */
    189                     cTicks);
     185        rc = msleep_spin(pEventInt,          /* block id */
     186                         &pEventInt->Mtx,
     187                         //fInterruptible ? PZERO | PCATCH : PZERO,
     188                         "iprte",           /* max 6 chars */
     189                         cTicks);
    190190        switch (rc)
    191191        {
  • trunk/src/VBox/Runtime/r0drv/freebsd/semeventmulti-r0drv-freebsd.c

    r8245 r18919  
    193193        ASMAtomicIncU32(&pEventMultiInt->cWaiters);
    194194
    195         rc = msleep(pEventMultiInt,     /* block id */
    196                     &pEventMultiInt->Mtx,
    197                     fInterruptible ? PZERO | PCATCH : PZERO,
    198                     "iprtev",           /* max 6 chars */
    199                     cTicks);
     195        rc = msleep_spin(pEventMultiInt,     /* block id */
     196                         &pEventMultiInt->Mtx,
     197                         //fInterruptible ? PZERO | PCATCH : PZERO,
     198                         "iprte",           /* max 6 chars */
     199                         cTicks);
    200200        switch (rc)
    201201        {
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