VirtualBox

Ignore:
Timestamp:
Aug 11, 2009 9:41:58 AM (15 years ago)
Author:
vboxsync
Message:

IPRT,SUPDrv: Changed RTTHREADPREEMPTSTATE breaking binary compatibility - increased the major SUPDrv version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c

    r22073 r22150  
    4040#include <iprt/assert.h>
    4141#include <iprt/err.h>
     42#include <iprt/mp.h>
    4243
    4344
     
    138139{
    139140    AssertPtr(pState);
    140     Assert(pState->uchDummy != 42);
    141     pState->uchDummy = 42;
     141    Assert(pState->u32Reserved == 0);
     142    pState->u32Reserved = 42;
    142143    vbi_preempt_disable();
     144    RT_ASSERT_PREEMPT_CPUID_DISABLE(pState);
    143145}
    144146
     
    147149{
    148150    AssertPtr(pState);
    149     Assert(pState->uchDummy == 42);
    150     pState->uchDummy = 0;
     151    Assert(pState->u32Reserved == 42);
     152    pState->u32Reserved = 0;
     153    RT_ASSERT_PREEMPT_CPUID_RESTORE(pState);
    151154    vbi_preempt_enable();
    152155}
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