This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg_io_init problems
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] Re: cyg_io_init problems
- From: "Joerg Troeger" <jtroeger at nortelnetworks dot com>
- Date: Thu, 7 Sep 2000 13:13:19 +0100
- Organization: NetServe
- Reply-To: "Joerg Troeger" <jtroeger at nortelnetworks dot com>
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