Changeset 549 for GPL/trunk/drv32


Ignore:
Timestamp:
Apr 13, 2011, 7:59:35 PM (15 years ago)
Author:
David Azarewicz
Message:

Fixes for changin interrupts in APIC mode

Location:
GPL/trunk/drv32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/drv32/idc.c

    r547 r549  
    5656                rprintf(("AlsaIDC: Resuming"));
    5757                OSS32_APMResume();
     58                DbgPrintIrq();
    5859        }
    5960
     
    129130
    130131  case IDC32_WAVE_STOP:
     132                DbgPrintIrq();
    131133       return OSS32_WaveStop(pPacket->streamid);
    132134
  • GPL/trunk/drv32/irq.cpp

    r547 r549  
    4646};
    4747
    48 extern DBGINT DbgInt;
     48extern "C" DBGINT DbgInt;
    4949
    5050//******************************************************************************
     
    9898   sti();
    9999   if( process_interrupt(ulSlotNo, &ulIrqNo) ) {
    100                 DbgInt.ulIntServiced[DbgInt.usState]++;
     100                DbgInt.ulIntServiced[DbgInt.ulState]++;
    101101       // We've cleared all service requests.
    102102       // Clear (disable) Interrupts, Send EOI
     
    107107       return TRUE;
    108108   }
    109         DbgInt.ulIntUnserviced[DbgInt.usState]++;
     109        DbgInt.ulIntUnserviced[DbgInt.ulState]++;
    110110   // Indicate Interrupt not serviced by setting carry flag before
    111111   // returning to OS/2 kernel.  OS/2 will then shut down the interrupt!
  • GPL/trunk/drv32/read.cpp

    r547 r549  
    1616
    1717}
    18 
    19 extern DBGINT DbgInt;
    2018
    2119ULONG StratRead(RP __far* _rp)
  • GPL/trunk/drv32/strategy.c

    r547 r549  
    4444extern "C" BOOL fRewired; //pci.c
    4545
    46 DBGINT DbgInt;
     46extern "C" DBGINT DbgInt;
    4747
    4848//******************************************************************************
     
    7272
    7373        memset(&DbgInt, 0, sizeof(DbgInt));
     74        DbgPrintIrq();
    7475
    7576        RPInit __far* rp = (RPInit __far*)_rp;
    7677        rc = DiscardableInit(rp);
    7778        //dprintf(("StratInit End rc=%d", rc));
    78         DbgInt.usState = 1;
     79        DbgPrintIrq();
     80        DbgInt.ulState = 1;
    7981        return rc;
    8082}
     
    8991#pragma on (unreferenced)
    9092{
    91         DbgInt.usState = 2;
     93        DbgInt.ulState = 2;
    9294#ifdef ACPI
    9395        PciAdjustInterrupts();
    9496#endif
    95         rprintf(("StratInitComplete: Init=%ld/%ld Between=%ld/%ld Complete=%ld/%ld",
    96                 DbgInt.ulIntServiced[0], DbgInt.ulIntUnserviced[0],
    97                 DbgInt.ulIntServiced[1], DbgInt.ulIntUnserviced[1],
    98                 DbgInt.ulIntServiced[2], DbgInt.ulIntUnserviced[2]));
     97        DbgPrintIrq();
    9998        //dprintf(("StratInitComplete"));
    10099        return(RPDONE);
     
    176175                rprintf(("Strategy: Resuming"));
    177176                OSS32_APMResume();
     177                DbgPrintIrq();
    178178        }
    179179
Note: See TracChangeset for help on using the changeset viewer.