Re: Raise IRQL or clear interrupt
- From: "Doron Holan [MSFT]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Sep 2008 11:40:30 -0700
cli is only local to the current processor. this will not prevent other processors from running code or processing interrupts
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.
"Pavel A." <pavel_a@xxxxxxxxxxxxxxx> wrote in message news:OGNfd%23oFJHA.5036@xxxxxxxxxxxxxxxxxxxxxxx
frefire wrote:
Yes I know I am on my own, but my question was to choose a way to prevent from context switches. Raise IRQL or cli, which is better, and why?
Maybe cli. It's hard to tell without knowing why you're doing this.
All one could see for now is that you're doing something weird, and get
a weird result. This is expected and not interesting.
Can you tell us an interesting story, so we'd became more
motivated to help you.
--PA
"Pavel A." <pavel_a@xxxxxxxxxxxxxxx> ??????:%23kYT9KeFJHA.5572@xxxxxxxxxxxxxxxxxxxxxxxYour self made ISR is not properly linked to the operating system,
so the IRQL is not updated and other things may be not in sync.
If you want to call other OS services from this ISR, you're up to your own.
--PA
"frefire" <nowhere@xxxxxxxxxxxxx> wrote in message news:OE05CWbFJHA.4176@xxxxxxxxxxxxxxxxxxxxxxxYes it does run on PASSIVE_LEVEL, cuz it is not a standard ISR provided by Windows. I wrote my own code to operate IDT of cpu to enable some debug support. When my interrupt routine is called, I can see that IRQL is PASSIVE_LEVEL.
"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ:OdLX$QbFJHA.1456@xxxxxxxxxxxxxxxxxxxxxxxISR's don't run on PASSIVE_LEVEL. You're mistaking something.
What you mean by "The interrupt context have an IRQL of PASSIVE_LEVEL"?
"frefire" <nowhere@xxxxxxxxxxxxx> wrote in message news:u6QWB%23aFJHA.768@xxxxxxxxxxxxxxxxxxxxxxxI have to handle a interrupt of cpu. During the process of interrupt(ISR), context switches must NOT happen. The interrupt context have an IRQL of PASSIVE_LEVEL. So what can I do? Raising the IRQL or cli? (note: this program works on a multi-processor system.
Thanks.
.
- References:
- Raise IRQL or clear interrupt
- From: frefire
- Re: Raise IRQL or clear interrupt
- From: Alexander Grigoriev
- Re: Raise IRQL or clear interrupt
- From: frefire
- Re: Raise IRQL or clear interrupt
- From: Pavel A.
- Re: Raise IRQL or clear interrupt
- From: frefire
- Re: Raise IRQL or clear interrupt
- From: Pavel A.
- Raise IRQL or clear interrupt
- Prev by Date: Re: USB application
- Next by Date: Re: USB application
- Previous by thread: Re: Raise IRQL or clear interrupt
- Next by thread: Re: Raise IRQL or clear interrupt
- Index(es):
Relevant Pages
|