VirtualBox

Changeset 6258

Show
Ignore:
Timestamp:
01/06/08 02:38:45 (1 year ago)
Author:
vboxsync
Message:

db x,y,z -> mnemonics; yasm supports them.

Files:

Legend:

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

    r6251 r6258  
    2525%include "VBox/x86.mac" 
    2626 
    27 %ifdef RT_OS_OS2 ;; @todo build cvs nasm like on OS X
     27%ifdef RT_OS_OS2 ;; @todo fix OMF support in yasm and kick nasm out completely
    2828 %macro vmwrite 2, 
    2929    int3 
     
    721721    mov     xAX, [xBP + xS*2]       ; pVMCBHostPhys (64 bits physical address; x86: take low dword only) 
    722722    push    xAX                     ; save for the vmload after vmrun 
    723     DB      0x0F, 0x01, 0xDB        ; VMSAVE 
     723    vmsave 
    724724 
    725725    ; setup eax for VMLOAD 
     
    736736 
    737737    ; Clear the global interrupt flag & execute sti to make sure external interrupts cause a world switch 
    738     DB      0x0f, 0x01, 0xDD        ; CLGI 
     738    clgi 
    739739    sti 
    740740 
    741741    ; load guest fs, gs, sysenter msr etc 
    742     DB      0x0f, 0x01, 0xDA        ; VMLOAD 
     742    vmload 
    743743    ; run the VM 
    744     DB      0x0F, 0x01, 0xD8        ; VMRUN 
     744    vmrun 
    745745 
    746746    ;/* EAX is in the VMCB already; we can use it here. */ 
    747747 
    748748    ; save guest fs, gs, sysenter msr etc 
    749     DB      0x0F, 0x01, 0xDB        ; VMSAVE 
     749    vmsave 
    750750 
    751751    ; load host fs, gs, sysenter msr etc 
    752752    pop     xAX                     ; pushed above 
    753     DB      0x0F, 0x01, 0xDA        ; VMLOAD 
     753    vmload 
    754754 
    755755    ; Set the global interrupt flag again, but execute cli to make sure IF=0. 
    756756    cli 
    757     DB      0x0f, 0x01, 0xDC        ; STGI 
     757    stgi 
    758758 
    759759    pop     xAX                     ; pCtx 
     
    777777    ret 
    778778ENDPROC SVMVMRun 
     779 
    779780 
    780781;; 
     
    794795    mov     ecx, edx 
    795796 %endif 
    796     ;invlpga rax, ecx - YASM 0.6.2 BUG? ;; @todo investigate and file bug report. 
    797     db 0fh, 01h, 0dfh 
    798797%else 
    799798    mov     eax, [esp + 4] 
    800799    mov     ecx, [esp + 8] 
    801     ;invlpga eax, ecx - YASM BUG? ;; @todo investigate and file bug report. 
    802     db 0fh, 01h, 0dfh 
    803 %endif 
     800%endif 
     801    invlpga [xAX], ecx 
    804802    ret 
    805803ENDPROC SVMInvlpgA 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy