VirtualBox

Changeset 59054 in vbox


Ignore:
Timestamp:
Dec 8, 2015 12:37:28 PM (9 years ago)
Author:
vboxsync
Message:

ASMAtomicXchgU64.asm: fixed unused 64-bit code versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asm/ASMAtomicXchgU64.asm

    r56290 r59054  
    3838; @param    u64New   x86:ebp+c   gcc:rsi  msc:rdx
    3939;
    40 ; @returns  bool result: true if successfully exchanged, false if not.
    41 ;           x86:al
     40; @returns Current (i.e. old) *pu64 value (x86:eax:edx, 64-bit: rax)
    4241;
    4342BEGINPROC_EXPORTED ASMAtomicXchgU64
    4443%ifdef RT_ARCH_AMD64
    4544 %ifdef ASM_CALL64_MSC
    46         mov     rax, r8
    47 .try_again:
    48         lock cmpxchg [rcx], rdx
     45        xchg    [rcx], rdx
    4946 %else
    50 .try_again:
    51         mov     rax, rcx
    52         lock cmpxchg [rdi], rsi
     47        xchg    [rdi], rsi
    5348 %endif
    54         jnz     .try_again
    5549        ret
    5650%endif
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