This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: a question about anoncvs
- From: Indra Antonius Simalango <indra at vlsi dot itb dot ac dot id>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 25 Aug 2005 15:07:54 +0700 (WIT)
- Subject: Re: [ECOS] a question about anoncvs
Thank you for your response.
Please give me your suggestion, what toolchain should I update?
I use gcc-2.96-98 and the original eCos Configuration Tool from eCos v-2.0
packages. (I use ecosconfig in text mode).
On Thu, 25 Aug 2005, Andrew Lunn wrote:
> I would not recommend this. Since this code works for us and not for
> you, you really want to understand what is going on rather than make a
> quick and dirty hack.
>
> My guess would be you have an old toolchain which cannot handle
> variables being declared in the middle of a function.
>
> Andrew
>
> > ----------------------------------------------------------------------
> > void hal_platform_init(void)
> > {
> > int vector;
> > cyg_uint8 lo, hi;
> >
> > HAL_ICACHE_INVALIDATE_ALL();
> > HAL_ICACHE_ENABLE();
> > HAL_DCACHE_INVALIDATE_ALL();
> > HAL_DCACHE_ENABLE();
> >
> > #ifdef CYGPKG_HAL_I386_PC_MEMSIZE_HARDCODE
> > cyg_hal_pc_memsize_base = CYGNUM_HAL_I386_PC_MEMSIZE_BASE;
> > cyg_hal_pc_memsize_extended = CYGNUM_HAL_I386_PC_MEMSIZE_EXTENDED;
> > #endif
> >
> >
> > #ifdef CYGPKG_HAL_I386_PC_MEMSIZE_BIOS
> > /* cyg_uint8 lo,hi; */
> >
> > HAL_READ_CMOS( 0x15, lo );
> > HAL_READ_CMOS( 0x16, hi );
> >
> > cyg_hal_pc_memsize_base = ((hi<<8)+lo)*1024;
> > -----------------------------------------------------------------------
> >
> > And voila, the previous error messages disappeared. But a new error
> > message come :
> >
> > -----------------------------------------------------------------------
> > /home/indra/anoncvs/eCos-new/ecos/packages/net/ppp/current/src/pppd.c: In
> > function `cyg_ppp_die':
> > /home/indra/anoncvs/eCos-new/ecos/packages/net/ppp/current/src/pppd.c:512:
> > parse error before `extern'
> > /home/indra/anoncvs/eCos-new/ecos/packages/net/ppp/current/src/pppd.c:514:
> > warning: implicit declaration of function `cyg_ppp_sys_exit'
> > make[1]: *** [src/pppd.o.d] Error 1
> > make: *** [build] Error 2
>
>
> This is a similar error as above. So you probably want to use your
> quit and dirty hack again, or really try to find the source of your
> problems.... I think it is your tool chain.
>
> Andrew
>
>
--
regards,
IndrA on 14:37, Aug 25
http://ic.ee.itb.ac.id/~antonius
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss