<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Joel Sherrill wrote:
<BLOCKQUOTE TYPE=CITE>Alejandro Villanueva wrote:
<BR>>
<BR>> Hello,
<BR>>
<BR>> I'm trying to catch IRQ7 in the pc386 BSP both under C and under
Ada.
<BR>> Could anyone tell me how to catch it, please?
<P>Everyone has given you the C answer without providing the
<BR>"Ada" answer.  If you are using Ada interrupts in the
<BR>Ada language sense, then you still have to have a real
<BR>hardware interrupt handler.  Then it is propagated with
<BR>POSIX signals to the Ada run-time to be presented to the
<BR>Ada application as an Ada interrupt.
<P>The only function version of this included in the source
<BR>tree is for the sparc/erc32.  See gnatsupp.c.  It provides
<BR>a real body for  __gnat_install_handler().
<BR> </BLOCKQUOTE>
Joel, I'm working on a i386, so the only hardware interrupt handler is
the PIC, so this is my new question: Will it be easier to implement
the interrupt handler in C using irq.h and then importing the handler
into Ada via pragma Import or to implement it directly in Ada not knowing
how to do it?
<P>Thanks,
<BR><BR>
Alejandro.
<BR> 
<BLOCKQUOTE TYPE=CITE> 
<BR>> Thanks,
<BR>>
<BR>> ------------------------------------------------------
<BR>> Alejandro Villanueva
<BR>> 190921@cepsz.unizar.es
<BR>> ------------------------------------------------------
<BR>>
<BR>>
<P>--
<BR>Joel Sherrill, Ph.D.            
Director of Research & Development
<BR>joel@OARcorp.com                
On-Line Applications Research
<BR>Ask me about RTEMS: a free RTOS  Huntsville AL 35805
<BR>   Support Available            
(256) 722-9985</BLOCKQUOTE>

<PRE>-- 
------------------------------------------------------
¿Quieres Cobrar por Navegar en Internet? 
Visita: <A HREF="http://www.navegana.com/dinero/flintstone.html">http://www.navegana.com/dinero/flintstone.html</A> 
------------------------------------------------------ 
Alejandro Villanueva
190921@cepsz.unizar.es
------------------------------------------------------</PRE>
 </HTML>