Mercurial > ecos-v3_0-branch
changeset 123:9b71e8e665a3
* include/basetype.h: Use 32-byte alignment
| author | jlarmour |
|---|---|
| date | Tue, 05 Sep 2000 15:44:11 +0000 |
| parents | 51271dc28cd2 |
| children | 0ec04793409a |
| files | packages/hal/i386/arch/current/ChangeLog packages/hal/i386/arch/current/include/basetype.h |
| diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/hal/i386/arch/current/ChangeLog +++ b/packages/hal/i386/arch/current/ChangeLog @@ -1,3 +1,7 @@ +2000-09-05 Jonathan Larmour <jlarmour@redhat.com> + + * include/basetype.h: Use 32-byte alignment + 2000-08-14 Jonathan Larmour <jlarmour@redhat.co.uk> From Fabrice Gautier:
--- a/packages/hal/i386/arch/current/include/basetype.h +++ b/packages/hal/i386/arch/current/include/basetype.h @@ -55,6 +55,14 @@ //#define CYG_LABEL_NAME(_name_) _name_ //----------------------------------------------------------------------------- +// Override the alignment definitions from cyg_type.h. x86 requires +// 32 *byte* alignment because gcc sometimes tries to be clever with +// aligning things on cache lines. + +#define CYGARC_ALIGNMENT 32 +#define CYGARC_P2ALIGNMENT 5 + +//----------------------------------------------------------------------------- // Define the standard variable sizes // The ix86 architecture uses the default definitions of the base types,
