VirtualBox

Changeset 26983 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 3, 2010 12:29:51 PM (15 years ago)
Author:
vboxsync
Message:

DevAPIC: Use the existing destination mode constants for better readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r26865 r26983  
    169169/* APIC destination mode */
    170170#define APIC_DESTMODE_FLAT      0xf
    171 #define APIC_DESTMODE_CLUSTER   1
     171#define APIC_DESTMODE_CLUSTER   0x0
    172172
    173173#define APIC_TRIGGER_EDGE  0
     
    12251225        for(i = 0; i < dev->cCpus; i++)
    12261226        {
    1227             if (apic->dest_mode == 0xf)
     1227            if (apic->dest_mode == APIC_DESTMODE_FLAT)
    12281228            {
    12291229                if (dest & apic->log_dest)
    12301230                    mask |= (1 << apic->id);
    12311231            }
    1232             else if (apic->dest_mode == 0x0)
     1232            else if (apic->dest_mode == APIC_DESTMODE_CLUSTER)
    12331233            {
    12341234                if ((dest & 0xf0) == (apic->log_dest & 0xf0)
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