This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: FIQ on ARM (ATMEL EB40A)
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Serge Manigault <Serge dot Manigault at ask dot fr>
- Cc: Andrew Lunn <andrew dot lunn at ascom dot ch>, ecos-discuss at sources dot redhat dot com, Gary Thomas <gthomas at ecoscentric dot com>
- Date: Mon, 30 Sep 2002 11:24:52 +0200
- Subject: Re: [ECOS] FIQ on ARM (ATMEL EB40A)
- References: <3D980882.E66C955@ask.fr>
On Mon, Sep 30, 2002 at 10:17:06AM +0200, Serge Manigault wrote:
> Hello,
> > What we have done is install a VSR on the FIQ. This worked well. The
> hard part was kicking off a DSR from the VSR .../...
> Can you tell me how did you install a VSR on a FIQ? (or have you some
> code example)
I used the kernal API. The documentation says....
void cyg_interrupt_get_vsr(
cyg_vector_t vector,
cyg_VSR_t **vsr )
Returns a pointer to the VSR currently installed on vector.
void cyg_interrupt_set_vsr (
cyg_vector_t vector,
cyg_VSR_t *vsr )
Sets the current VSR on vector. A VSR directly attaches to the
hardware interrupt vector and needs to be written in assembler.
For FIQ, use a vector of CYGNUM_HAL_VECTOR_FIQ, which is in the arm
arch file hal_intr.h.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss