VirtualBox

Changeset 71701 in vbox


Ignore:
Timestamp:
Apr 6, 2018 11:33:13 AM (7 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Use lfence for RT_UNTRUSTED_VALIDATED_FENCE on both amd64 and x86.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r71602 r71701  
    16251625 * What this translates to is architecture dependent.  On intel it will
    16261626 * translate to a CPU load+store fence as well as a compiler memory barrier. */
    1627 #if   defined(RT_ARCH_AMD64)
    1628 # define RT_UNTRUSTED_VALIDATED_FENCE()         do { ASMCompilerBarrier(); ASMMemoryFenceSSE2(); } while (0)
     1627#if defined(RT_ARCH_AMD64) || (defined(RT_ARCH_X86) && !defined(RT_WITH_OLD_CPU_SUPPORT))
     1628# define RT_UNTRUSTED_VALIDATED_FENCE()         do { ASMCompilerBarrier(); ASMReadFence(); } while (0)
    16291629#elif defined(RT_ARCH_X86)
    16301630# define RT_UNTRUSTED_VALIDATED_FENCE()         do { ASMCompilerBarrier(); ASMMemoryFence(); } while (0)
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