VirtualBox

Changeset 10697 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 16, 2008 12:32:59 PM (17 years ago)
Author:
vboxsync
Message:

Do *NOT* invoke the logger when inside a spinlock because it may block and kernels like xnu gets very upset about such things (panics).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r10694 r10697  
    14971497    pUsage->pObj        = pObj;
    14981498    pUsage->pNext       = pSession->pUsage;
    1499     Log2(("SUPR0ObjRegister: pUsage=%p:{.pObj=%p, .pNext=%p}\n", pUsage, pUsage->pObj, pUsage->pNext));
     1499    /* Log2(("SUPR0ObjRegister: pUsage=%p:{.pObj=%p, .pNext=%p}\n", pUsage, pUsage->pObj, pUsage->pNext)); */
    15001500    pSession->pUsage    = pUsage;
    15011501
     
    15421542    if (RT_UNLIKELY(pObj->u32Magic != SUPDRVOBJ_MAGIC))
    15431543    {
    1544         AssertMsg(pObj->u32Magic == SUPDRVOBJ_MAGIC + 1, ("pvObj=%p magic=%#x\n", pvObj, pObj->u32Magic));
    1545 
    15461544        RTSpinlockRelease(pDevExt->Spinlock, &SpinlockTmp);
     1545
     1546        AssertMsgFailed(("pvObj=%p magic=%#x\n", pvObj, pObj->u32Magic));
    15471547        return VERR_WRONG_ORDER;
    15481548    }
     
    15741574    for (pUsage = pSession->pUsage; pUsage; pUsage = pUsage->pNext)
    15751575    {
    1576         Log(("SUPR0AddRef: pUsage=%p:{.pObj=%p, .pNext=%p}\n", pUsage, pUsage->pObj, pUsage->pNext));
     1576        /*Log(("SUPR0AddRef: pUsage=%p:{.pObj=%p, .pNext=%p}\n", pUsage, pUsage->pObj, pUsage->pNext));*/
    15771577        if (pUsage->pObj == pObj)
    15781578            break;
     
    15871587        pUsagePre->pNext    = pSession->pUsage;
    15881588        pSession->pUsage    = pUsagePre;
    1589         Log(("SUPR0AddRef: pUsagePre=%p:{.pObj=%p, .pNext=%p}\n", pUsagePre, pUsagePre->pObj, pUsagePre->pNext));
     1589        /*Log(("SUPR0AddRef: pUsagePre=%p:{.pObj=%p, .pNext=%p}\n", pUsagePre, pUsagePre->pObj, pUsagePre->pNext));*/
    15901590
    15911591        pUsagePre = NULL;
     
    16421642         pUsagePrev = pUsage, pUsage = pUsage->pNext)
    16431643    {
    1644         Log2(("SUPR0ObjRelease: pUsage=%p:{.pObj=%p, .pNext=%p}\n", pUsage, pUsage->pObj, pUsage->pNext));
     1644        /*Log2(("SUPR0ObjRelease: pUsage=%p:{.pObj=%p, .pNext=%p}\n", pUsage, pUsage->pObj, pUsage->pNext));*/
    16451645        if (pUsage->pObj == pObj)
    16461646        {
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