# HG changeset patch # User jlarmour # Date 968168651 0 # Node ID 9b71e8e665a361ff73f1ee1dca4652197c13808d # Parent 51271dc28cd205e17b6da68d285a1041964c6e08 * include/basetype.h: Use 32-byte alignment diff --git a/packages/hal/i386/arch/current/ChangeLog b/packages/hal/i386/arch/current/ChangeLog --- a/packages/hal/i386/arch/current/ChangeLog +++ b/packages/hal/i386/arch/current/ChangeLog @@ -1,3 +1,7 @@ +2000-09-05 Jonathan Larmour + + * include/basetype.h: Use 32-byte alignment + 2000-08-14 Jonathan Larmour From Fabrice Gautier: diff --git a/packages/hal/i386/arch/current/include/basetype.h b/packages/hal/i386/arch/current/include/basetype.h --- 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,