[ECOS] ARM Assabet software interrupts
Jonathan Larmour
jlarmour@redhat.com
Thu Mar 29 18:26:00 GMT 2001
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
More information about the Ecos-discuss
mailing list