This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ARM Assabet software interrupts
- To: Vlasios Tsiatsis <tsiatsis at ee dot ucla dot edu>
- Subject: Re: [ECOS] ARM Assabet software interrupts
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 29 Mar 2001 17:24:06 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <3AC29EDF.BD75AD0E@ee.ucla.edu>
Vlasios Tsiatsis wrote:
>
> Hi,
>
> I would like to define an interrupt handler (ISR and DSR) for a software
> interrupt for the ARM processor on the assabet board.
> If i use the cyg_interrupt_create() function what should i do so that i
> install an interrupt
> handler for, say, the software interrupt #5 ?
You can probably find the interrupt in question by looking at (in this
case) hal/arm/sa11x0/var/current/include/hal_var_ints.h file.
> My problem is that i don't understand (i haven't looked at the source
> code yet) how the demultiplexing of software interrupts is done. Should
> i give the number 5 as the interrupt handler data to the
> cyg_interrupt_create() function ?
The data argument is whatever you want to be delivered at the point the ISR
is called. It's up to you.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine