X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..c331a0bec715536613c8dd5f34a4e115d5b15824:/iokit/Kernel/IOInterruptEventSource.cpp diff --git a/iokit/Kernel/IOInterruptEventSource.cpp b/iokit/Kernel/IOInterruptEventSource.cpp index 722188c2c..9694b1130 100644 --- a/iokit/Kernel/IOInterruptEventSource.cpp +++ b/iokit/Kernel/IOInterruptEventSource.cpp @@ -44,19 +44,19 @@ HISTORY #define IOTimeTypeStampS(t) \ do { \ IOTimeStampStart(IODBG_INTES(t), \ - (unsigned int) this, (unsigned int) owner); \ + (uintptr_t) this, (uintptr_t) owner); \ } while(0) #define IOTimeTypeStampE(t) \ do { \ IOTimeStampEnd(IODBG_INTES(t), \ - (unsigned int) this, (unsigned int) owner); \ + (uintptr_t) this, (uintptr_t) owner); \ } while(0) #define IOTimeStampLatency() \ do { \ IOTimeStampEnd(IODBG_INTES(IOINTES_LAT), \ - (unsigned int) this, (unsigned int) owner); \ + (uintptr_t) this, (uintptr_t) owner); \ } while(0) #else /* !KDEBUG */ @@ -149,6 +149,7 @@ void IOInterruptEventSource::enable() if (provider && intIndex != -1) { provider->enableInterrupt(intIndex); explicitDisable = false; + enabled = true; } } @@ -157,6 +158,7 @@ void IOInterruptEventSource::disable() if (provider && intIndex != -1) { provider->disableInterrupt(intIndex); explicitDisable = true; + enabled = false; } } @@ -186,7 +188,7 @@ bool IOInterruptEventSource::checkForWork() IOTimeStampLatency(); IOTimeTypeStampS(IOINTES_CLIENT); IOTimeStampConstant(IODBG_INTES(IOINTES_ACTION), - (unsigned int) intAction, (unsigned int) owner); + (uintptr_t) intAction, (uintptr_t) owner); (*intAction)(owner, this, numInts); IOTimeTypeStampE(IOINTES_CLIENT); @@ -198,7 +200,7 @@ bool IOInterruptEventSource::checkForWork() IOTimeStampLatency(); IOTimeTypeStampS(IOINTES_CLIENT); IOTimeStampConstant(IODBG_INTES(IOINTES_ACTION), - (unsigned int) intAction, (unsigned int) owner); + (uintptr_t) intAction, (uintptr_t) owner); (*intAction)(owner, this, -numInts); IOTimeTypeStampE(IOINTES_CLIENT);