Hey Scott, <br><br>Thanks for the reply, I shall investigate further. <br><br>I wasn&#39;t talking about interrupt handlers in Linux as such, but using powerpc-eabi-gcc to write an ISR for the MPC5516. (I guess that could be off-topic on this mailing list, but I thought the folks on this mailing list would probably know the answer pretty easily). I was hoping that gcc would generate the prologue and epilogue code for me via the interrupt attributes.<br>
<br>Many thanks.<br>Tehn Yit Chin<br><br><br><br><div class="gmail_quote">On Fri, Mar 21, 2008 at 4:18 AM, Scott Wood &lt;<a href="mailto:scottwood@freescale.com">scottwood@freescale.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Tehn Yit Chin wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; Apologies for such a basic question. I am trying to write an ISR on a<br>
&gt; MPC551x. When I tried to use the interrupt attribute with<br>
&gt; powerpc-eabi-gcc such as<br>
&gt;<br>
&gt; _attribute_((interrupt_handler)) foobarISR(void)<br>
&gt; {<br>
&gt; }<br>
<br>
</div>Assuming you&#39;re talking about an interrupt handler in Linux, you don&#39;t<br>
need to do anything like that. &nbsp;The actual interrupt entry is assembly<br>
code. &nbsp;Search existing drivers for &quot;irqreturn_t&quot; to find examples of<br>
what an interrupt handler looks like, and &quot;request_irq&quot; for how to hook<br>
the handler into the interrupt.<br>
<font color="#888888"><br>
-Scott<br>
</font></blockquote></div><br>