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/freebsd/thread-r0drv-freebsd.c

    r21536 r22150  
    143143{
    144144    AssertPtr(pState);
    145     Assert(pState->uchDummy != 42);
    146     pState->uchDummy = 42;
     145    Assert(pState->u32Reserved == 0);
     146    pState->u32Reserved = 42;
    147147
    148148    critical_enter();
     149    RT_ASSERT_PREEMPT_CPUID_DISABLE(pState);
    149150}
    150151
     
    153154{
    154155    AssertPtr(pState);
    155     Assert(pState->uchDummy == 42);
    156     pState->uchDummy = 0;
     156    Assert(pState->u32Reserved == 42);
     157    pState->u32Reserved = 0;
    157158
     159    RT_ASSERT_PREEMPT_CPUID_RESTORE(pState);
    158160    critical_exit();
    159161}
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