[pso] [PSO2][Win]DRIVER_IRQL_NOT_LESS_OR_EQUAL
ionut balosin
shmennen at yahoo.com
Mon Mar 26 02:10:00 EEST 2007
ionut balosin <shmennen at yahoo.com> wrote: Salut,
am si eu urmatoarea problema: activez intreruperea pentru Com1 si la intrarea in ISR imi da eroare cand incerc sa accesez campuri din structura device-ului definita de mine. Astfel, sectiunea de cod din ISR este:
BOOLEAN Isr(PKINTERRUPT pInterrupt, PVOID ServiceContext) {
PDEVICE_OBJECT device = (PDEVICE_OBJECT)ServiceContext;
struct uart16550_dev *dev=(struct uart16550_dev*)device->DeviceExtension;
ULONG PORT = dev->COM; ==> AICI SE GENEREAZA BLUE SCREEN
....
}
Sorry pentru post, am rezolvat problema cand m-am uitat mai atent semnificatia parametrilor.
Pentru cei care mai au asa ceva, folositi astfel:
BOOLEAN Isr(PKINTERRUPT pInterrupt, PVOID ServiceContext) {
PDEVICE_OBJECT device = (PDEVICE_OBJECT)ServiceContext;
struct uart16550_dev *dev=(struct uart16550_dev*)ServiceContext;
ULONG PORT = dev->COM;
....
}
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070325/0cee48e4/attachment.html
More information about the pso
mailing list