[pso] tema 2 windows
Ghervase Gabriel
ghervase_gabriel at yahoo.com
Mon Apr 23 11:40:37 EEST 2007
Salut
Imi poate spune cineva daca pentru tema 2 de windows mai trebuiesc facute si alte setari pentru generarea intreruperilor?
ACPI e dezinstalet;COM1, COM2 sunt disabled.
Secventa de initializare a intreruperilor e aceeasi pe care am folosit-o la tema de linux, unde a functionat.
Codul care inregistreaza intreruperile e cel din laboratorul 5; adica:
struct my_device_data *my_data=(struct my_device_data *) device->DeviceExtension;
kVector = HalGetInterruptVector(Internal, 0, my_data->Irq, 0, &kIrql, &kAffinity);
ret = IoConnectInterrupt(
&my_data->pIntObj, // the Interrupt object
Isr, // our ISR
my_data, // Service Context
NULL, // no spin lock
kVector, // vector
kIrql, // DIRQL
kIrql, // DIRQL
LevelSensitive, // Latched or Level
TRUE, // Shared?
-1, // processors in an MP set
FALSE ); // save FP registers?
if (!NT_SUCCESS(ret)) goto error;
Mersi.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070423/62337964/attachment-0001.html
More information about the pso
mailing list