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_io_init problems


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


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