VirtualBox

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


Ignore:
Timestamp:
May 19, 2016 12:44:39 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107310
Message:

APICInternal.h: Removed redundant RT_BOOL in XAPIC_IN_X2APIC_MODE macro and adjusted the expression identation for more optimal reading and 130 columns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/APICInternal.h

    r61041 r61045  
    4646
    4747/** Whether the APIC is in X2APIC mode or not. */
    48 #define XAPIC_IN_X2APIC_MODE(a_pVCpu)        RT_BOOL((((a_pVCpu)->apic.s.uApicBaseMsr) & (MSR_APICBASE_XAPIC_ENABLE_BIT | MSR_APICBASE_X2APIC_ENABLE_BIT)) \
    49                                                      == (MSR_APICBASE_XAPIC_ENABLE_BIT | MSR_APICBASE_X2APIC_ENABLE_BIT))
     48#define XAPIC_IN_X2APIC_MODE(a_pVCpu)        (   (  ((a_pVCpu)->apic.s.uApicBaseMsr) \
     49                                                  & (MSR_APICBASE_XAPIC_ENABLE_BIT | MSR_APICBASE_X2APIC_ENABLE_BIT)) \
     50                                              ==    (MSR_APICBASE_XAPIC_ENABLE_BIT | MSR_APICBASE_X2APIC_ENABLE_BIT) )
    5051/** Get an xAPIC page offset for an x2APIC MSR value. */
    5152#define X2APIC_GET_XAPIC_OFF(a_uMsr)         ((((a_uMsr) - MSR_IA32_X2APIC_START) << 4) & UINT32_C(0xff0))
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