VirtualBox

Changeset 61072 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 20, 2016 2:59:40 AM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: Get rid of a couple of duplicate macros, and added a couple of ones to x86.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/apic.h

    r61044 r61072  
    3434 * @{
    3535 */
    36 
    37 /** Gets the APIC base physical address. */
    38 #define MSR_APICBASE_GET_PHYSADDR(a)         ((a) & PAGE_BASE_GC_MASK)
    39 /** Gets the APIC mode. */
    40 #define MSR_APICBASE_GET_MODE(a)             (((a) >> 10) & UINT64_C(3))
    41 /** The APIC global enable bit. */
    42 /** @todo r=bird: Please do   N O T  use _BIT for what clearly are masks!
    43  *  See x86.h and vm.h for examples of how we use _BIT elsewhere!
    44  * Besides, you are duplicating existing x86.h defines here
    45  * (MSR_IA32_APICBASE_XXX). */
    46 #define MSR_APICBASE_XAPIC_ENABLE_BIT        RT_BIT_64(11)
    47 /** The x2APIC global enable bit. */
    48 #define MSR_APICBASE_X2APIC_ENABLE_BIT       RT_BIT_64(10)
    49 /** The APIC bootstrap processor bit. */
    50 #define MSR_APICBASE_BOOTSTRAP_CPU_BIT       RT_BIT_64(8)
    51 /** The default APIC base address. */
    52 #define XAPIC_APICBASE_PHYSADDR              UINT64_C(0xfee00000)
    53 /** The APIC base MSR - Is the APIC enabled?  */
    54 #define MSR_APICBASE_IS_ENABLED(a_Msr)       RT_BOOL((a_Msr) & MSR_APICBASE_XAPIC_ENABLE_BIT)
    5536
    5637/** Offset of APIC ID Register. */
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