This is the mail archive of the ecos-patches@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]

mainthread.cxx - unaligned stack possible


eCos provides the stack for main() when building with libc startup support and CYGSEM_LIBC_MAIN_STACK_FROM_SYSTEM is defined.  However, the stack is declared as an array of  cyg_uint8, so there is the possibility that it is unaligned.  The attached trivial fix ensures that the stack is at least octlet-aligned.  (Does any architecture require an alignment stricter than 8 bytes ?)

 

-Scott

 

Attachment: mainthread.cxx.patch
Description: Binary data


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