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]

Thread stack overflow checking problem for H8S architecture


Hello,

As soon as I activated the configuration option
CYGFUN_KERNEL_THREADS_STACK_CHECKING, the following assertin will be
executed:

CYG_ASSERT( NULL != base, "stack base non-NULL" );
CYG_ASSERT( 0 == ((sizeof(CYG_WORD)-1) & (cyg_uint32)base), "stack base
alignment" );
CYG_ASSERT( 0 == ((sizeof(CYG_WORD)-1) & (cyg_uint32)top),  "stack  top
alignment" );

Because the idle thread stack(and maybe the thread stacks within the eCos
tests) are declared as unsigned char, they are not aligned to a size of
CYG_WORD and this assertion will fail. When I change the idle thread stack
to an array of cyg_uint32 this problem does not occur.

Could you please give me a hint what to do in order to pass the assertions
without changing the kernel and eCos test code.

Thank you very much

Regards, Uwe

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


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