This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Cyg_RealTimeClock constructor not getting called
- From: harish kasiviswanathan <harish dot kasiviswanathan at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 4 Nov 2010 10:14:56 -0400
- Subject: [ECOS] Re: Cyg_RealTimeClock constructor not getting called
- References: <AANLkTi=X_y5VnLH9TSM4ChnitPJCLDztHPVjF8PzUGMs@mail.gmail.com>
I found the problem. I am using older version of eCos as base for this
porting and compiler is arm-eabi-. So the problem occurred because
older eCos was built using arm-elf compiler. Arm-elf compiler supports
__CTOR_LIST__ (for the list of constructors) and arm-eabi supports
init_array.
On Tue, Nov 2, 2010 at 10:03 PM, harish kasiviswanathan
<harish.kasiviswanathan@gmail.com> wrote:
> Hi,
>
> I am trying to develop a Freescale mx27 port of eCos. I have some of
> the functionalities like RedBoot, Interrupts working. I am having
> problem with Kernel real time clock. The function
> cyg_real_time_clock() is returning 0. I also noticed that
> Cyg_RealTimeClock constructor is not getting called.
>
> Any help/ideas will be helpful.
>
> Thanks.
> Harish
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss