public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: cyg_io_init problems
@ 2000-09-07  4:19 Joerg Troeger
  2000-09-07  5:19 ` Carl van Schaik
  0 siblings, 1 reply; 5+ messages in thread
From: Joerg Troeger @ 2000-09-07  4:19 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-09-10 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-07  4:19 [ECOS] Re: cyg_io_init problems Joerg Troeger
2000-09-07  5:19 ` Carl van Schaik
2000-09-07  7:12   ` Jesper Skov
2000-09-07  7:42     ` Carl van Schaik
2000-09-10 20:41       ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).