This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: Wrong declaration of idle_thread_stack
- From: "Uwe Kindler" <ukindler at htwm dot de>
- To: <ecos-discuss at sources dot redhat dot com>
- Cc: "Eric de Jong" <list_ericdejong_10 at gmx dot net>
- Date: Thu, 22 Jan 2004 09:33:50 +0100
- Subject: Re: [ECOS] Re: Wrong declaration of idle_thread_stack
- References: <002701c3e030$81cec690$2c79378d@uwepc> <20040121182548.GB3270@lunn.ch> <000e01c3e053$243fbc50$2c79378d@uwepc> <000301c3e0bc$86747b40$e33922c7@ericnt>
Hello Eric,
thank you for the reply. When I use the alignment attribute then the char
array will be aligned correctly. Here is the result of nm comman.
00ffc00c B _bss
00ffc00c D _edata
00ffc00c b _stack01
00ffc01c b _stack02
00ffc02c b _stack03
00ffc03c b _stack04
00ffc040 b _stack05
00ffc044 B _count
00ffc048 B _ebss
But this does not solve the eCos idle_thread_stack problem because it is
inside the kernel and this should be a kernel patch. Also thís would be
necessary for other char arrays within the eCos source that should be
aligned.
Regards, Uwe
> To allign a character array, will this work?
>
> static char stack01[16] __attribute__ ((aligned (4)));
> static char stack02[15] __attribute__ ((aligned (4)));
> static char stack03[14] __attribute__ ((aligned (4)));
> static char stack04[3] __attribute__ ((aligned (4)));
> static char stack05[4] __attribute__ ((aligned (4)));
>
eCos port for Renesas EDOSK-2674
http://www.htwm.de/ukindler/ecos
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss