VirtualBox

Changeset 2738 in vbox for trunk


Ignore:
Timestamp:
May 21, 2007 2:49:30 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21339
Message:

Backed out 21335 & corrected return values.

File:
1 edited

Legend:

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

    r2735 r2738  
    441441; */
    442442BEGINPROC VMXWriteVMCS64
     443    xor         rax, rax
    443444%ifdef ASM_CALL64_GCC
     445    and         rdi, 0ffffffffh
    444446    vmwrite     rdi, rsi
    445447%else
     448    and         rcx, 0ffffffffh
    446449    vmwrite     rcx, rdx
    447450%endif
     
    465468;DECLASM(int) VMXReadVMCS64(uint32_t idxField, uint64_t *pData);
    466469BEGINPROC VMXReadVMCS64
    467 %ifdef ASM_CALL64_GCC
     470    xor         rax, rax
     471%ifd%ifdef ASM_CALL64_GCC
     472    and         rdi, 0ffffffffh
    468473    vmread      [rsi], rdi
    469474%else
     475    and         rcx, 0ffffffffh
    470476    vmread      [rdx], rcx
    471477%endif
     
    490496BEGINPROC VMXEnable
    491497%ifdef __AMD64__
     498    xor     rax, rax
    492499 %ifdef ASM_CALL64_GCC
    493500    push    rdi
     
    497504    vmxon   [rsp]
    498505%else
     506    xor     eax, eax
    499507    vmxon   [esp + 4]
    500508%endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette