This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ARM Assabet software interrupts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]