how can I catch an interrupt signal?
Eric Valette
valette at crf.canon.fr
Mon Oct 9 14:43:21 UTC 2000
alberto capella wrote:
>
> Nick.SIMON at syntegra.bt.co.uk escribió:
>
> > > -----Original Message-----
> > > From: alberto capella [mailto:alberto.capella at terra.es]
> > > Sent: 07 October 2000 12:49
> > > To: rtems-users at oarcorp.com
> > > Subject: how can I catch an interrupt signal?
> > >
> > <snip>
> > >
> > > resul=rtems_interrupt_catch(sb16_isr,0x34,&old_isr_handler);
> > >
> >
> > How do you connect IRQ 5 with the 0x34 RTEMS vector you're attaching your
> > ISR to? And BTW which BSP are you using?
> >
> > -- Nick Simon
>
> I'm using the pc386 BSP. My host computer is a i686 running Linux and the
> target machine is a Pentium-MMX.
>
> I ´d like to know what is the second parameter I have to pass to the
> rtems_interrupt_catch directive if my SB is connected to the IRQ 5, so, what
> is the value of the "rtems_vector_number vector" I have to use?
>
> Not only I'd like to know this, but also if I have to use some special
> CFLAGS in my Makefile to do my program run correctly.
On PC386, rtems_interrupt_catch is no more the correct interface. The
correct interface is described in
c/src/lib/libbsp/i386/shared/irq/irq.h. If you really want to hook your
interrupt vectors directly in the IDT then look in
c/src/lib/libcpu/i386/idt.c and understand that _CPU_ISR_install_vector
is there only for compatibility reasons...
--
__
/ ` Eric Valette - Canon CRF
/-- __ o _. Canon Development Europe Team Leader
(___, / (_(_(__ Rue de la touche lambert
35517 Cesson-Sevigne Cedex
FRANCE
Tel: +33 (0)2 99 87 68 91 Fax: +33 (0)2 99 84 11 30
E-mail: valette at crf.canon.fr http://www.crf.canon.fr
More information about the users
mailing list