[ECOS] Re: Wrong declaration of idle_thread_stack
Uwe Kindler
ukindler@htwm.de
Thu Jan 22 08:29:00 GMT 2004
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
More information about the Ecos-discuss
mailing list