From e41cec318a2abed0e3da097741239904da9ab83d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 14 Sep 2011 14:25:36 +0000 Subject: [PATCH] 2011-09-14 Sebastian Huber * rtems/score/cpu.h: Request cache alignment and small data area in CPU_STRUCTURE_ALIGNMENT. --- cpukit/score/cpu/nios2/ChangeLog | 5 +++++ cpukit/score/cpu/nios2/rtems/score/cpu.h | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cpukit/score/cpu/nios2/ChangeLog b/cpukit/score/cpu/nios2/ChangeLog index 1f56054537..bd9863680b 100644 --- a/cpukit/score/cpu/nios2/ChangeLog +++ b/cpukit/score/cpu/nios2/ChangeLog @@ -1,3 +1,8 @@ +2011-09-14 Sebastian Huber + + * rtems/score/cpu.h: Request cache alignment and small data area in + CPU_STRUCTURE_ALIGNMENT. + 2011-09-09 Sebastian Huber * nios2-thread-dispatch-disabled.c: Use offsetof() instead of diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h index b15ddeb2c4..956294d303 100644 --- a/cpukit/score/cpu/nios2/rtems/score/cpu.h +++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h @@ -65,10 +65,7 @@ extern "C" { #define CPU_STACK_GROWS_UP FALSE -/* - * TODO: Run the timing tests and figure out if we profit from cache alignment. - */ -#define CPU_STRUCTURE_ALIGNMENT +#define CPU_STRUCTURE_ALIGNMENT __attribute__((section(".sdata"), aligned(32))) #define CPU_BIG_ENDIAN FALSE