Re: Installable ISR - general questions
- From: Valter Minute <v_a_l_t_e_r.m_i_n_u_t_e@xxxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 05:22:59 -0700
"Ole" <ole@xxxxxxxxxx> wrote in
news:ObppXav4GHA.1460@xxxxxxxxxxxxxxxxxxxx:
On MSDN it says: "If the IsrHandler and IsrDll values are provided
in the device's registry key, then the driver should load the ISR
DLL through the LoadIntChainHandler call."
-Are there any other ways to load the installable ISR handler?
I don't undestand your question.
If you mean other ways than calling LoadIntChainHandler, I think
that the answer is not (or not in a simple and clean way).
If you mean if your driver has to handle those registry keys, you
can decide. If it's something you'll use only inside your products,
you may choose other ways to handle it. If it will be distributed to
other third parties developers choosing the "standard" approach will
made simpler for them to learn how to use your driver, IMHO.
if so - then: if my ISR is the only one that uses e.g. irq 11 -
will I then have to use the chainhandler?
No, you may change the BSP ISR routine to convert irq 11 to your
specific sysintr code. Some BSP have a more flexible mechanism that
allows you to request a sysintr for a specific IRQ via
KernelIoControl calls. If your BSP implements this mechanism I think
that using it is a good idea.
The installable ISR could be useful if your IST can't process the
IRQ fast enough. Using an installable ISR you can put some of the
processing inside the ISR routine (ex: adding an extra level of
buffering) and reducing the number of times that the IST is invoked.
Once again you don't need an installable ISR to do that. You can
modify your BSPs OEMInterruptHandler but if your BSP provides
support for loadable handlers, using them is a good way to have a
driver with few BSP dependencies that could be easily ported to
other architectures or integrated into other BSPs.
--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.
- Follow-Ups:
- Re: Installable ISR - general questions
- From: Ole
- Re: Installable ISR - general questions
- References:
- Installable ISR - general questions
- From: Ole
- Re: Installable ISR - general questions
- From: Valter Minute
- Re: Installable ISR - general questions
- From: Ole
- Installable ISR - general questions
- Prev by Date: What's "Invalidating Saved Bits"?
- Next by Date: installing platform builder
- Previous by thread: Re: Installable ISR - general questions
- Next by thread: Re: Installable ISR - general questions
- Index(es):
Relevant Pages
|
Loading