VirtualBox

Changeset 7208 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 29, 2008 1:25:30 AM (17 years ago)
Author:
vboxsync
Message:

Initialize xAX to zero, was broken in the 64-bit success path.

File:
1 edited

Legend:

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

    r5999 r7208  
    3838        ; Do the bulk of the work.
    3939%ifdef RT_ARCH_AMD64
     40        xor     eax, eax
    4041 %ifdef ASM_CALL64_MSC
    4142        mov     r10, rdi                ; save
     
    4849        mov     rcx, rdx
    4950 %endif
    50         mov     rax, rdi                ; save the return value
    5151        shr     rcx, 3
    5252        repe cmpsq
     
    6060        mov     esi, [esp + 08h + 8]
    6161        mov     edx, ecx
    62         xor     eax, eax
    6362        jecxz   .done
    6463        shr     ecx, 2
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