VirtualBox

Changeset 50660 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Mar 3, 2014 8:48:07 AM (11 years ago)
Author:
vboxsync
Message:

iprt: three register parmaeter fixes in unused code (64-bit gcc).

Location:
trunk/src/VBox/Runtime/common/asm
Files:
3 edited

Legend:

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

    r33540 r50660  
    3737; @param    pu64     x86:ebp+8   gcc:rdi  msc:rcx
    3838; @param    u64New   x86:ebp+c   gcc:rsi  msc:rdx
    39 ; @param    u64Old   x86:ebp+14  gcc:rcx  msc:r8
    40 ; @param    u64Old   x86:ebp+1c  gcc:rdx  msc:r9
     39; @param    u64Old   x86:ebp+14  gcc:rdx  msc:r8
     40; @param    pu64Old  x86:ebp+1c  gcc:rcx  msc:r9
    4141;
    4242; @returns  bool result: true if successfully exchanged, false if not.
     
    5050        mov     [r9], rax
    5151 %else
    52         mov     rax, rcx
     52        mov     rax, rdx
    5353        lock cmpxchg [rdi], rsi
    54         mov     [rdx], rax
     54        mov     [rcx], rax
    5555 %endif
    5656        setz    al
  • trunk/src/VBox/Runtime/common/asm/ASMAtomicCmpXchgU64.asm

    r33540 r50660  
    3737; @param    pu64     x86:ebp+8   gcc:rdi  msc:rcx
    3838; @param    u64New   x86:ebp+c   gcc:rsi  msc:rdx
    39 ; @param    u64Old   x86:ebp+14  gcc:rcx  msc:r8
     39; @param    u64Old   x86:ebp+14  gcc:rdx  msc:r8
    4040;
    4141; @returns  bool result: true if successfully exchanged, false if not.
     
    4848        lock cmpxchg [rcx], rdx
    4949 %else
    50         mov     rax, rcx
     50        mov     rax, rdx
    5151        lock cmpxchg [rdi], rsi
    5252 %endif
  • trunk/src/VBox/Runtime/common/asm/ASMCpuId_Idx_ECX.asm

    r44529 r50660  
    3737; @param    uOperator   x86:ebp+8   gcc:rdi  msc:rcx
    3838; @param    uIdxECX     x86:ebp+c   gcc:rsi  msc:rdx
    39 ; @param    pvEAX       x86:ebp+10  gcc:rcx  msc:r8
    40 ; @param    pvEBX       x86:ebp+14  gcc:rdx  msc:r9
     39; @param    pvEAX       x86:ebp+10  gcc:rdx  msc:r8
     40; @param    pvEBX       x86:ebp+14  gcc:rcx  msc:r9
    4141; @param    pvECX       x86:ebp+18  gcc:r8   msc:rsp+28h
    4242; @param    pvEDX       x86:ebp+1c  gcc:r9   msc:rsp+30h
     
    6565
    6666 %else
     67        mov     rsi, rdx
     68        mov     r11, rcx
    6769        mov     eax, edi
    68         xchg    rcx, rsi
    69         mov     ecx, ecx                ; paranoia: clear upper bits
    70         mov     r11, rdx
     70        mov     ecx, esi
    7171        xor     ebx, ebx
    7272        xor     edx, edx
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