DEFINE Macro

mypopy at gmail.com mypopy at gmail.com
Fri Jan 6 01:12:34 EST 2012


在 2012年1月6日 上午11:32,Fredrick <fjohnber at zoho.com>写道:

> Hi,
>
> I am not able to understand the DEFINE macro used in
> arch/powerpc/kernel/asm-offsets.c
>
> I suppose the DEFINE is present in
> include/linux/kbuild.h
> where it says
> #define DEFINE(sym, val) \
>         asm volatile("\n->" #sym " %0 " #val : : "i" (val))
>
> What does the above mean?
>
>
> -Fredrick
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


Oh, This is the inline ASM in gcc, pls refer to
http://ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html

-- 
=======================================
Pixelworks
Room 301-303 No. 88,Lane 887 Zuchongzhi Road, Zhangjiang Hi-tech Park,
Shanghai 201203, China
Best Regards,
Jun zhao/赵军
+++++++++++++++++++++++++++++++++++++++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120106/41389c9d/attachment.html 


More information about the Kernelnewbies mailing list