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]

Re: cyg_create_thread


On Tue, Sep 04, 2001 at 06:07:27PM +0200, Christoph Csebits wrote:
> On Tue, Sep 04, 2001 at 04:55:29PM +0200, Andrew Lunn wrote:
> > > my twothreads example does not work any longer.
> > > TRACE: <1>[1068]Cyg_Check_Structure_Sizes::Cyg_Check_Structure_Sizes() Size of C struct cyg_thread != size of C++ struct Cyg_Thread
> > > ASSERT FAIL: <1>[1080]Cyg_Check_Structure_Sizes::Cyg_Check_Structure_Sizes() Size checks failed
> > 
> I start with a clean build dir. But i am making some changes after
> getting the new eCos version (adding my HAL, diagnostic serial driver 
> and flash support).

Well, the synthetic version compiles and runs OK.

The assertion is saying that the C struct cyg_thread, as defined in
kapidata.h is a different size to the C++ clase Cyg_Thread as defined
in thread.hxx. These two should be identical, member for member. 

Maybe something is happening with the HAL specific entries in these
structures. Things like the register set? You will have to compare
then and see whats different. That should give a clue as to whats
causing the problem.

        Andrew


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