- Strange CmResourceTypeInterrupt Level & Vector values
- Posted by RussMitch on February 22nd, 2008
I'm using the following code to extract the interrupt Level and Vector from
the CmResourceTypeInterrupt descriptor in my EvtInterruptIsr() routine:
if (desc->Type == CmResourceTypeInterrupt) {
if (desc->Flags&CM_RESOURCE_INTERRUPT_MESSAGE) {
pDevExt->Interrupt.Level= desc->u.MessageInterrupt.Translated.Level;
pDevExt->Interrupt.Vector= desc->u.MessageInterrupt.Translated.Vector;
} else {
pDevExt->Interrupt.Level= desc->u.Interrupt.Level;
pDevExt->Interrupt.Vector= desc->u.Interrupt.Vector;
}
LOG_MSG( LOG_INFO, "Interrupt.Level= %d, Interrupt.Vector= %d\n",
pDevExt->Interrupt.Level, pDevExt->Interrupt.Vector );
}
The following output appears in my debug log file:
Interrupt.Level= 16, Interrupt.Vector= 59
which seems kinda strange to me. Is this correct?
/Russ
- Posted by Don Burn on February 22nd, 2008
Why do you think it is strange? Looks valid to me.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"RussMitch" <RussMitch@discussions.microsoft.com> wrote in message
news:9A14A996-EBD0-48F2-AF74-D39678D505B5@microsoft.com...
- Posted by RussMitch on February 22nd, 2008
Well, I was expecting one of them to be the real (hardware) IRQ, which is 11,
but I guess the OS adds a layer of abstraction on top of the hardware
interrupts, probably not a bad idea. Not that it matters, but do you know
how many levels there are, and what is the vector?
/Russ
/Russ
"Don Burn" wrote:
- Posted by Maxim S. Shatskih on February 22nd, 2008
IRQ 11 is long ago gone since IO APICs were introduced.
With an IO APIC, there is no more hardware limit of the original IBM PC on
16 IRQs.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"RussMitch" <RussMitch@discussions.microsoft.com> wrote in message
news:C58DEB25-329F-4C4E-8FB7-C6589B38E858@microsoft.com...
- Posted by Doron Holan [MSFT] on February 22nd, 2008
the number of levels does not really matter, the encoding can change from
release to release as well.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"RussMitch" <RussMitch@discussions.microsoft.com> wrote in message
news:C58DEB25-329F-4C4E-8FB7-C6589B38E858@microsoft.com...