VirtualBox

Changeset 22677 in vbox


Ignore:
Timestamp:
Sep 1, 2009 3:10:42 PM (15 years ago)
Author:
vboxsync
Message:

Runtime/FreeBSD: Initialize spinlock variables and fix panic with debug builds

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

Legend:

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

    r22582 r22677  
    9696        return VERR_INVALID_HANDLE;
    9797    PRTSEMEVENTINTERNAL pEventInt = (PRTSEMEVENTINTERNAL)EventSem;
    98     RTSPINLOCKTMP Tmp;
     98    RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;
    9999
    100100    AssertPtrReturn(pEventInt, VERR_INVALID_HANDLE);
     
    131131RTDECL(int)  RTSemEventSignal(RTSEMEVENT EventSem)
    132132{
    133     RTSPINLOCKTMP       Tmp;
     133    RTSPINLOCKTMP       Tmp = RTSPINLOCKTMP_INITIALIZER;
    134134    PRTSEMEVENTINTERNAL pEventInt = (PRTSEMEVENTINTERNAL)EventSem;
    135135    AssertPtrReturn(pEventInt, VERR_INVALID_HANDLE);
     
    161161{
    162162    int rc;
    163     RTSPINLOCKTMP       Tmp;
     163    RTSPINLOCKTMP       Tmp = RTSPINLOCKTMP_INITIALIZER;
    164164    PRTSEMEVENTINTERNAL pEventInt = (PRTSEMEVENTINTERNAL)EventSem;
    165165    AssertPtrReturn(pEventInt, VERR_INVALID_HANDLE);
  • trunk/src/VBox/Runtime/r0drv/freebsd/semeventmulti-r0drv-freebsd.c

    r22582 r22677  
    9696        return VERR_INVALID_HANDLE;
    9797    PRTSEMEVENTMULTIINTERNAL pEventMultiInt = (PRTSEMEVENTMULTIINTERNAL)EventMultiSem;
    98     RTSPINLOCKTMP            Tmp;
     98    RTSPINLOCKTMP            Tmp = RTSPINLOCKTMP_INITIALIZER;
    9999
    100100    AssertPtrReturn(pEventMultiInt, VERR_INVALID_HANDLE);
     
    130130RTDECL(int)  RTSemEventMultiSignal(RTSEMEVENTMULTI EventMultiSem)
    131131{
    132     RTSPINLOCKTMP            Tmp;
     132    RTSPINLOCKTMP            Tmp = RTSPINLOCKTMP_INITIALIZER;
    133133    PRTSEMEVENTMULTIINTERNAL pEventMultiInt = (PRTSEMEVENTMULTIINTERNAL)EventMultiSem;
    134134    AssertPtrReturn(pEventMultiInt, VERR_INVALID_HANDLE);
     
    158158RTDECL(int)  RTSemEventMultiReset(RTSEMEVENTMULTI EventMultiSem)
    159159{
    160     RTSPINLOCKTMP            Tmp;
     160    RTSPINLOCKTMP            Tmp = RTSPINLOCKTMP_INITIALIZER;
    161161    PRTSEMEVENTMULTIINTERNAL pEventMultiInt = (PRTSEMEVENTMULTIINTERNAL)EventMultiSem;
    162162    AssertPtrReturn(pEventMultiInt, VERR_INVALID_HANDLE);
     
    175175{
    176176    int rc;
    177     RTSPINLOCKTMP            Tmp;
     177    RTSPINLOCKTMP            Tmp = RTSPINLOCKTMP_INITIALIZER;
    178178    PRTSEMEVENTMULTIINTERNAL pEventMultiInt = (PRTSEMEVENTMULTIINTERNAL)EventMultiSem;
    179179    AssertPtrReturn(pEventMultiInt, VERR_INVALID_HANDLE);
  • trunk/src/VBox/Runtime/r0drv/freebsd/spinlock-r0drv-freebsd.c

    r22650 r22677  
    173173#ifdef RT_STRICT
    174174    Assert(pTmp->uFlags == 0);
    175     pTmp->uFlags = 0;
     175    pTmp->uFlags = 42;
    176176#endif
    177177
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