Disabling interrupts in Windows
- From: "ravi" <ravisrm@xxxxxxxxx>
- Date: 11 Jan 2006 01:19:48 -0800
I am executing a piece of code within a callback function for a USB
driver which I want to protect from getting interrupted on a Pentium 4
Hyperthreaded PC. I want to disable all other interrupts before this
piece of code and then enable the interrupts when I am done. I used the
assembly cli/sti for disabling the interrupts but this causes the PC to
freeze when I run the USB driver with HYPERTHREADING enabled. With HT
disabled the code runs fine.. So, I tried raising the Irql level to
HIGH_LEVEL using the KeRaiseIrql function and then restoring the Irql
to the old level using KeLowerIrql but it seems that some tasks DO
interrupt my function. Is there any other way by which I can disable
all other interrupts before my code??
OS is WinXp/Win2000.
- Thanks!!
.
- Follow-Ups:
- Re: Disabling interrupts in Windows
- From: Stephan Wolf [MVP]
- Re: Disabling interrupts in Windows
- From: Gary G. Little
- Re: Disabling interrupts in Windows
- From: Maxim S. Shatskih
- Re: Disabling interrupts in Windows
- Prev by Date: Re: about IRP_MJ_READ and *WRITE
- Next by Date: Re: DDK Platform Cross Compile on XP
- Previous by thread: Re: DrvSaveScreenBits not called
- Next by thread: Re: Disabling interrupts in Windows
- Index(es):
Relevant Pages
|