This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: cyg_io_init problems
- To: Ecos Mailing List <ecos-discuss at sources dot redhat dot com>
- Subject: Re: [ECOS] Re: cyg_io_init problems
- From: Carl van Schaik <carl at leg dot uct dot ac dot za>
- Date: Thu, 7 Sep 2000 15:11:30 +0200 (SAST)
> Carl,
>
> this is caused by aligning all HAL tables in the brandnew version.
> All table entries are aligned to multiples of 8
> (see hal_tables.h, f.i. CYG_HAL_TABLE_TYPE).
>
> Unfortunately cyg_devtab_entry_t is of size 0x1c! The simple
> "t++" doesn't respect the alignment and doesn't point
> correctly to the 2nd entry after incrementing.
>
> I have added a structure member "unsigned long dummy"
> at the end of cyg_deventry_t in devtab.h (aligning the structure
> to have size 0x20, so "t++" is correct).
>
> Jörg
This works, but there is still a problem:
It only compiles correctly from a clean compile
once you start working on files and recompiling, the offset is messed up
again.
Carl