Re: DEFINE Macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





在 2012年1月6日 上午11:32,Fredrick <fjohnber@xxxxxxxx>写道:
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@xxxxxxxxxxxxxxxxx
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/赵军
+++++++++++++++++++++++++++++++++++++++
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux