This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
CYG_HAL_TABLE_END alignment
- From: Peter Korsgaard <jacmet at sunsite dot dk>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Thu, 28 Apr 2005 19:43:53 +0200
- Subject: CYG_HAL_TABLE_END alignment
Hi,
Why is CYG_HAL_TABLE_END aligned? It seems to be a conscious decission
according to hal/common/current/ChangeLog:
2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
* include/hal_tables.h (CYG_HAL_TABLE_END): Use CYGARC_P2ALIGNMENT
to align label
But this gives errors if the size of the table elements aren't a
multiple of the alignment (8 bytes).
I had an issue with that today using the I2C infrastructure, since the
cyg_i2c_bus structure is 44 bytes big with assertions enabled -
causing an never ending loop in cyg_i2c_init::cyg_i2c_init.
--
Bye, Peter Korsgaard