This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: How should I interpret this macro? thanks a lot. (Revised one)
- From: "Qiang Huang" <jameshq at liverpool dot ac dot uk>
- To: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 5 Dec 2002 15:31:21 -0000
- Subject: [ECOS] RE: How should I interpret this macro? thanks a lot. (Revised one)
#define CYG_HAL_TABLE_BEGIN( _label, _name )
\
__asm__(".section \".ecos.table." __xstring(_name) ".begin\",\"aw\"\n"
\
".globl " __xstring(CYG_LABEL_DEFN(_label)) "\n"
\
".type " __xstring(CYG_LABEL_DEFN(_label)) ",object\n"
\
".p2align " __xstring(CYGARC_P2ALIGNMENT) "\n"
\
__xstring(CYG_LABEL_DEFN(_label)) ":\n"
\
".previous\n"
\
)
#endif
CYG_HAL_TABLE_BEGIN( __DEVTAB__, devtab );
expanded to :
.section .ecos.table.devtab.begin aw
.global __DEVTAB__
.type __DEVTAB__ , object
.p2align 3
__DEVTAB__:
.previous
Is the above correct? Thanks a lot.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss