<br><br><div class="gmail_quote">在 2012年1月6日 上午11:32,Fredrick <span dir="ltr">&lt;<a href="mailto:fjohnber@zoho.com">fjohnber@zoho.com</a>&gt;</span>写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am not able to understand the DEFINE macro used in<br>
arch/powerpc/kernel/asm-offsets.c<br>
<br>
I suppose the DEFINE is present in<br>
include/linux/kbuild.h<br>
where it says<br>
#define DEFINE(sym, val) \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; asm volatile(&quot;\n-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>
<br>
What does the above mean?<br>
<br>
<br>
-Fredrick<br>
<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br clear="all">Oh, This is the inline ASM in gcc, pls refer to <a href="http://ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html">http://ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html</a><br>
<br>-- <br>=======================================<br>Pixelworks<br>Room 301-303 No. 88,Lane 887 Zuchongzhi Road, Zhangjiang Hi-tech Park, Shanghai 201203, China<br>Best Regards,<br>Jun zhao/赵军<br>+++++++++++++++++++++++++++++++++++++++<br>