This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "cyg_hal_invoke_constructors" usage?


Hi,

Qiang Huang wrote:

Does anybody know what is the usage of "cyg_hal_invoke_constructors"? If I
want to implement "cyg_hal_invoke_constructors" how should I implement this
function?

This function is defined in hal_misc.c for your architechture.

It calls the constructors for the global/static C++ objects in the order they

have been put in the __CTOR_LIST__ list.


The compiler populates this list for you. The entries go there in the order as governed by the prioroty specified. An example from thread.cxx --

Cyg_IdleThread idle_thread[CYGNUM_KERNEL_CPU_MAX] CYG_INIT_PRIORITY( IDLE_THREAD);

--
regards
sandeep
--------------------------------------------------------------------------
You will lose your present job and have to become a door to door
mayonnaise salesman.
--------------------------------------------------------------------------


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]