summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/m68k/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-25 10:20:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-26 09:07:30 +0100
commita8865f8b415788c4e9bb7f68e38d41aec0e485db (patch)
treed7b70c608239be68c6476b0d9e9893e099ec8be6 /cpukit/score/cpu/m68k/rtems
parentscore: Add RTEMS_ALIGNED() (diff)
downloadrtems-a8865f8b415788c4e9bb7f68e38d41aec0e485db.tar.bz2
score: Introduce CPU_CACHE_LINE_BYTES
Add CPU_CACHE_LINE_BYTES for the maximum cache line size in bytes. The actual processor may use no cache or a smaller cache line size.
Diffstat (limited to 'cpukit/score/cpu/m68k/rtems')
-rw-r--r--cpukit/score/cpu/m68k/rtems/score/cpu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/score/cpu/m68k/rtems/score/cpu.h b/cpukit/score/cpu/m68k/rtems/score/cpu.h
index 47a2d8edf5..8e0efa161f 100644
--- a/cpukit/score/cpu/m68k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m68k/rtems/score/cpu.h
@@ -99,7 +99,11 @@ extern "C" {
#define CPU_PROVIDES_IDLE_THREAD_BODY TRUE
#define CPU_STACK_GROWS_UP FALSE
-#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (4)))
+
+/* FIXME: Is this the right value? */
+#define CPU_CACHE_LINE_BYTES 16
+
+#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/*
* Define what is required to specify how the network to host conversion