summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/score/cpu/nios2/ChangeLog5
-rw-r--r--cpukit/score/cpu/nios2/rtems/score/cpu.h5
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 <sebastian.huber@embedded-brains.de>
+
+ * rtems/score/cpu.h: Request cache alignment and small data area in
+ CPU_STRUCTURE_ALIGNMENT.
+
2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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