VirtualBox

Changeset 40951 in vbox for trunk


Ignore:
Timestamp:
Apr 16, 2012 7:25:26 PM (13 years ago)
Author:
vboxsync
Message:

Runtime/spinlock-generic: Fix building on SPARC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/spinlock-generic.cpp

    r40806 r40951  
    136136        for (;;)
    137137        {
     138#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    138139            ASMIntDisable();
     140#endif
    139141            for (int c = RT_CFG_SPINLOCK_GENERIC_DO_SLEEP; c > 0; c--)
    140142            {
     
    148150                ASMNopPause();
    149151            }
     152#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    150153            ASMSetFlags(fIntSaved);
     154#endif
    151155            RTThreadYield();
    152156        }
     
    154158        for (;;)
    155159        {
     160#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    156161            ASMIntDisable();
     162#endif
    157163            if (ASMAtomicCmpXchgU32(&pThis->fLocked, 1, 0))
    158164            {
     
    162168                return;
    163169            }
     170#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    164171            ASMSetFlags(fIntSaved);
     172#endif
    165173            ASMNopPause();
    166174        }
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