This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: interrupts - deleting/finding by vector
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: "David N. Welton" <davidw at dedasys dot com>
- Cc: "ecos-discuss at sources dot redhat dot com" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 28 May 2002 22:06:15 +0100
- Subject: Re: [ECOS] interrupts - deleting/finding by vector
- Organization: Red Hat UK Ltd.
- References: <87r8k4fb3f.fsf_-_@dedasys.com>
"David N. Welton" wrote:
>
> I want to write some code that might want to insert its own interrupts
> (I'm not positive, but I'm still experimenting).
>
> Is there a way to
>
> 1) find out if a given vector has a had an interrupt created for it?
>
> 2) if so, delete/replace it?
>
> I didn't see anything like this in the API...
It's not part of the "official" API as such, but each HAL has a macro
called HAL_INTERRUPT_IN_USE you can use to determine if an interrupt vector
has something already installed on it. Deleting/replacing it can then be
done using the standard functions. Look at that in the hal_intr.h file in
the arch source directory of the appropriate HAL.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss