VirtualBox

Changeset 20666 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 17, 2009 1:01:56 PM (15 years ago)
Author:
vboxsync
Message:

Changed PDMApicGet/SetTPR to get/set the full task priority register.

File:
1 edited

Legend:

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

    r20572 r20666  
    681681    APICDeviceInfo *dev = PDMINS_2_DATA(pDevIns, APICDeviceInfo *);
    682682    APICState *s = getLapicById(dev, idCpu);
    683     LogFlow(("apicSetTPR: val=%#x (trp %#x -> %#x)\n", val, s->tpr, (val & 0x0f) << 4));
    684     apic_update_tpr(dev, s, (val & 0x0f) << 4);
     683    LogFlow(("apicSetTPR: val=%#x (trp %#x -> %#x)\n", val, s->tpr, val));
     684    apic_update_tpr(dev, s, val);
    685685}
    686686
     
    689689    APICDeviceInfo *dev = PDMINS_2_DATA(pDevIns, APICDeviceInfo *);
    690690    APICState *s = getLapicById(dev, idCpu);
    691     Log2(("apicGetTPR: returns %#x\n", s->tpr >> 4));
    692     return s->tpr >> 4;
     691    Log2(("apicGetTPR: returns %#x\n", s->tpr));
     692    return s->tpr;
    693693}
    694694
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