VirtualBox

Changeset 2300 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 21, 2007 12:20:10 AM (18 years ago)
Author:
vboxsync
Message:

ansi C

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/SELMAll.cpp

    r2267 r2300  
    111111    if (!CPUMAreHiddenSelRegsValid(pVM))
    112112        return selmToFlat(pVM, Sel, Addr);
    113     else
    114         return (RTGCPTR)(pHiddenSel->u32Base + (RTGCUINTPTR)Addr);
     113    return (RTGCPTR)(pHiddenSel->u32Base + (RTGCUINTPTR)Addr);
    115114}
    116115
     
    189188
    190189            /** @todo handle LDT page(s) not present! */
    191             #ifdef IN_GC
     190#ifdef IN_GC
    192191            PVBOXDESC    paLDT = (PVBOXDESC)((char *)pVM->selm.s.GCPtrLdt + pVM->selm.s.offLdtHyper);
    193             #else
     192#else
    194193            PVBOXDESC    paLDT = (PVBOXDESC)((char *)pVM->selm.s.HCPtrLdt + pVM->selm.s.offLdtHyper);
    195             #endif
     194#endif
    196195            Desc = paLDT[Sel >> X86_SEL_SHIFT];
    197196        }
     
    223222         * Type check.
    224223         */
    225         #define BOTH(a, b) ((a << 16) | b)
     224#define BOTH(a, b) ((a << 16) | b)
    226225        switch (BOTH(u1DescType, u4Type))
    227226        {
     
    319318
    320319        }
    321         #undef BOTH
     320#undef BOTH
    322321    }
    323322    return VERR_SELECTOR_NOT_PRESENT;
     
    347346    {
    348347        /** @todo handle LDT page(s) not present! */
    349         #ifdef IN_GC
     348#ifdef IN_GC
    350349        PVBOXDESC    paLDT = (PVBOXDESC)((char *)pVM->selm.s.GCPtrLdt + pVM->selm.s.offLdtHyper);
    351         #else
     350#else
    352351        PVBOXDESC    paLDT = (PVBOXDESC)((char *)pVM->selm.s.HCPtrLdt + pVM->selm.s.offLdtHyper);
    353         #endif
     352#endif
    354353        Desc = paLDT[SelCS >> X86_SEL_SHIFT];
    355354    }
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