VirtualBox

Changeset 25671 in vbox


Ignore:
Timestamp:
Jan 6, 2010 6:01:40 AM (15 years ago)
Author:
vboxsync
Message:

iprt/asm.h,ASMAtomciUoReadU64.asm: consistent use of the lock prefix in the 32-bit version of ASMAtomicUoReadU64; play safe and use it.

Location:
trunk
Files:
2 edited

Legend:

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

    r25667 r25671  
    43624362                           "S" (pu64));
    43634363#   else /* !PIC */
    4364     __asm__ __volatile__("cmpxchg8b %1\n\t"
     4364    __asm__ __volatile__("lock; cmpxchg8b %1\n\t"
    43654365                         : "=A" (u64),
    43664366                           "+m" (*pu64)
  • trunk/src/VBox/Runtime/common/asm/ASMAtomicUoReadU64.asm

    r25665 r25671  
    6464        xor     ecx, ecx
    6565        xor     ebx, ebx
    66         cmpxchg8b [edi]
     66        lock cmpxchg8b [edi]
    6767
    6868        pop     edi
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