This is the mail archive of the ecos-devel@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]
Other format: [Raw text]

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


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