This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
RE: cyg_interrupt_set_vsr and ARM AEB-1
- To: Ivan Griffin <ivan dot griffin at parthus dot com>
- Subject: RE: [ECOS] cyg_interrupt_set_vsr and ARM AEB-1
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Tue, 30 May 2000 14:34:57 -0600 (MDT)
- Cc: ecos-discuss at sourceware dot cygnus dot com
On 30-May-00 Ivan Griffin wrote:
> I'm trying to do the following in cyg_prestart() to hook the IRQ and FIQ
> interrupts on the ARM AEB-7. Can anyone tell me why the following code
> doesn't appear to work?
>
>#define ARM_IRQ_INTR 0x18
>#define ARM_FIQ_INTR 0x1c
>
> extern void IRQ_Veneer(void);
> extern void FIQ_Handler(void);
>
> void cyg_prestart(void)
> {
> cyg_interrupt_disable();
> cyg_interrupt_set_vsr(ARM_IRQ_INTR, (cyg_VSR_t*)IRQ_Veneer);
> cyg_interrupt_set_vsr(ARM_FIQ_INTR, (cyg_VSR_t*)FIQ_Handler);
> cyg_interrupt_enable();
> }
>
What does it appear to do [if not work]?