Interrupt catch

Nick.SIMON at syntegra.bt.co.uk Nick.SIMON at syntegra.bt.co.uk
Thu Oct 12 05:56:21 UTC 2000


Eric Vallette recently wrote:


> 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...



If you look through the pc386 bsp you'll find numerous calls to
BSP_install_rtems_irq_handler:

[nicks at titan pc386]$ find . -name *.c -exec grep --with-filename
BSP_install_rtems_irq "{}" \;
./3c509/3c509.c:  st = BSP_install_rtems_irq_handler( &sc->irqInfo );
./clock/ckinit.c:  if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
./clock/ckinit.c:      if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
./console/console.c:      status =
BSP_install_rtems_irq_handler(&console_isr_data);
./console/console.c:      status =
BSP_install_rtems_irq_handler(&console_isr_data);
./ne2000/ne2000.c:  if (! BSP_install_rtems_irq_handler (&irq))
./wd8003/wd8003.c:  st = BSP_install_rtems_irq_handler (&sc->irqInfo);



-- Nick Simon 

-----Original Message-----
From: Alejandro Villanueva [mailto:190921 at cepsz.unizar.es]
Sent: 11 October 2000 18:37
To: rtems-users at oarcorp.com
Cc: Joel Sherrill
Subject: Interrupt catch


Hello, 
I'm trying to catch IRQ7 in the pc386 BSP both under C and under Ada. Could
anyone tell me how to catch it, please? 
Thanks, 
------------------------------------------------------ 
Alejandro Villanueva
190921 at cepsz.unizar.es
------------------------------------------------------
  



More information about the users mailing list