VirtualBox

Changeset 48326 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 5, 2013 8:41:59 PM (11 years ago)
Author:
vboxsync
Message:

VMM: Nits.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0Mixed.mac

    r48318 r48326  
    8080    sgdt    [xSP]
    8181    mov     xAX, xBX
    82     and     al, 0F8h                                ; Mask away TI and RPL bits, get descriptor offset.
     82    and     eax, X86_SEL_MASK_OFF_RPL               ; Mask away TI and RPL bits leaving only the descriptor offset.
    8383    add     xAX, [xSP + 2]                          ; eax <- GDTR.address + descriptor offset.
    84     and     dword [ss:xAX + 4], ~0200h              ; Clear busy flag (2nd type2 bit).
     84    and     dword [ss:xAX + 4], ~RT_BIT(9)          ; Clear the busy flag in TSS desc (bits 0-7=base, bit 9=busy bit).
    8585    ltr     bx
    8686    add     xSP, xCB * 2
     
    343343    sgdt    [xSP]
    344344    mov     xAX, xBX
    345     and     al, 0F8h                                ; Mask away TI and RPL bits, get descriptor offset.
    346     add     xAX, [xSP + 2]                          ; eax <- GDTR.address + descriptor offset.
    347     and     dword [xAX + 4], ~0200h                 ; Clear busy flag (2nd type2 bit).
     345    and     eax, X86_SEL_MASK_OFF_RPL           ; Mask away TI and RPL bits leaving only the descriptor offset.
     346    add     xAX, [xSP + 2]                      ; eax <- GDTR.address + descriptor offset.
     347    and     dword [xAX + 4], ~RT_BIT(9)         ; Clear the busy flag in TSS desc (bits 0-7=base, bit 9=busy bit).
    348348    ltr     bx
    349349    add     xSP, xCB * 2
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r48284 r48326  
    40634063        {
    40644064            pVCpu->hm.s.vmx.pfnStartVM = VMXR0SwitcherStartVM64;
    4065             /** @todo this isn't necessary, but I'm still seeing tripple faults. */
     4065            /** @todo this isn't necessary, but I'm still seeing triple faults. */
    40664066            VMCPU_FF_SET(pVCpu, VMCPU_FF_TO_R3);
    40674067            pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_VMX_EXIT_CTLS;
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