VirtualBox

Changeset 1931 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 4, 2007 2:04:15 PM (18 years ago)
Author:
vboxsync
Message:

apic.c => DevAPIC.cpp

Location:
trunk/src/VBox/Devices
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile

    r1912 r1931  
    141141VBoxDD2_SOURCES         = \
    142142        Builtins2.cpp \
    143         PC/apic.c
     143        PC/DevAPIC.cpp
    144144VBoxDD2_LIBS            = \
    145145        $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
     
    289289        $(PATH_CURRENT)
    290290VBoxDD2GC_SOURCES        = \
    291         PC/apic.c
     291        PC/DevAPIC.cpp
    292292ifeq ($(VBOX_LDR_FMT32),pe)
    293293VBoxDD2GC_LDFLAGS        = -Entry:apicMMIOWrite
     
    309309        $(PATH_CURRENT)
    310310VBoxDD2R0_SOURCES        = \
    311         PC/apic.c
     311        PC/DevAPIC.cpp
    312312ifeq ($(VBOX_LDR_FMT),pe)
    313313VBoxDD2R0_LDFLAGS        = -Entry:apicMMIOWrite
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r1928 r1931  
    732732    }
    733733    reset_bit(s->irr, intno);
    734     if (s->tpr && intno <= s->tpr) {
     734    if (s->tpr && (uint32_t)intno <= s->tpr) {
    735735        Log(("apic_get_interrupt: returns %d (sp)\n", s->spurious_vec & 0xff));
    736736        return s->spurious_vec & 0xff;
     
    10801080static void apic_save(QEMUFile *f, void *opaque)
    10811081{
    1082     APICState *s = opaque;
     1082    APICState *s = (APICState*)opaque;
    10831083    int i;
    10841084
     
    11141114static int apic_load(QEMUFile *f, void *opaque, int version_id)
    11151115{
    1116     APICState *s = opaque;
     1116    APICState *s = (APICState*)opaque;
    11171117    int i;
    11181118
     
    11531153static void apic_reset(void *opaque)
    11541154{
    1155     APICState *s = opaque;
     1155    APICState *s = (APICState*)opaque;
    11561156#ifdef VBOX
    11571157    TMTimerStop(s->CTXSUFF(pTimer));
     
    12771277void ioapic_set_irq(void *opaque, int vector, int level)
    12781278{
    1279     IOAPICState *s = opaque;
     1279    IOAPICState *s = (IOAPICState*)opaque;
    12801280
    12811281    if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
     
    13031303static uint32_t ioapic_mem_readl(void *opaque, target_phys_addr_t addr)
    13041304{
    1305     IOAPICState *s = opaque;
     1305    IOAPICState *s = (IOAPICState*)opaque;
    13061306    int index;
    13071307    uint32_t val = 0;
     
    13391339static void ioapic_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val)
    13401340{
    1341     IOAPICState *s = opaque;
     1341    IOAPICState *s = (IOAPICState*)opaque;
    13421342    int index;
    13431343
     
    13771377static void ioapic_save(QEMUFile *f, void *opaque)
    13781378{
    1379     IOAPICState *s = opaque;
     1379    IOAPICState *s = (IOAPICState*)opaque;
    13801380    int i;
    13811381
     
    13891389static int ioapic_load(QEMUFile *f, void *opaque, int version_id)
    13901390{
    1391     IOAPICState *s = opaque;
     1391    IOAPICState *s = (IOAPICState*)opaque;
    13921392    int i;
    13931393
     
    14051405static void ioapic_reset(void *opaque)
    14061406{
    1407     IOAPICState *s = opaque;
     1407    IOAPICState *s = (IOAPICState*)opaque;
    14081408#ifdef VBOX
    14091409    PPDMDEVINSHC        pDevIns    = s->pDevInsHC;
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    r1723 r1931  
    4848#include "PC/DevRTC.cpp"
    4949#undef LOG_GROUP
    50 #include "PC/apic.c"
     50#include "PC/DevAPIC.cpp"
    5151#undef LOG_GROUP
    5252#include "Storage/DevATA.cpp"
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp

    r1723 r1931  
    5858#include "PC/DevRTC.cpp"
    5959#undef LOG_GROUP
    60 #include "PC/apic.c"
     60#include "PC/DevAPIC.cpp"
    6161#undef LOG_GROUP
    6262#include "Storage/DevATA.cpp"
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