VirtualBox

Changeset 2750 in vbox for trunk/src


Ignore:
Timestamp:
May 21, 2007 4:35:46 PM (18 years ago)
Author:
vboxsync
Message:

Proper masking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0A.asm

    r2747 r2750  
    143143; */
    144144BEGINPROC VMXStartVM
     145int3
    145146    push    xBP
    146147    mov     xBP, xSP
     
    216217ALIGNCODE(16)
    217218.vmlaunch_done:
     219int3
    218220    jnc     .vmxstart_good
    219221
     
    441443; */
    442444BEGINPROC VMXWriteVMCS64
     445%ifdef ASM_CALL64_GCC
     446    mov         eax, 0ffffffffh
     447    and         rdi, rax
    443448    xor         rax, rax
    444 %ifdef ASM_CALL64_GCC
    445     and         rdi, 0ffffffffh
    446449    vmwrite     rdi, rsi
    447450%else
    448     and         rcx, 0ffffffffh
     451    mov         eax, 0ffffffffh
     452    and         rcx, rax
     453    xor         rax, rax
    449454    vmwrite     rcx, rdx
    450455%endif
     
    468473;DECLASM(int) VMXReadVMCS64(uint32_t idxField, uint64_t *pData);
    469474BEGINPROC VMXReadVMCS64
     475%ifdef ASM_CALL64_GCC
     476    mov         eax, 0ffffffffh
     477    and         rdi, rax
    470478    xor         rax, rax
    471 %ifdef ASM_CALL64_GCC
    472     and         rdi, 0ffffffffh
    473479    vmread      [rsi], rdi
    474480%else
    475     and         rcx, 0ffffffffh
     481    mov         eax, 0ffffffffh
     482    and         rcx, rax
     483    xor         rax, rax
    476484    vmread      [rdx], rcx
    477485%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