summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-23 11:34:40 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-09 14:03:35 +0100
commit84d3b9b0a2008836c59791bf33803ed578e22fff (patch)
tree211acb93b2f95d7f59628649135b83709a01506d /c/src/lib/libcpu
parentpowerpc: Delete _CPU_IRQ_info (diff)
downloadrtems-84d3b9b0a2008836c59791bf33803ed578e22fff.tar.bz2
powerpc: Use PPC_DEFAULT_CACHE_LINE_SIZE
Use it for the default PPC_CACHE_ALIGNMENT. Use it for PPC_STRUCTURE_ALIGNMENT.
Diffstat (limited to 'c/src/lib/libcpu')
-rw-r--r--c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h b/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
index 2a895e1201..8934585a92 100644
--- a/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
+++ b/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
@@ -78,7 +78,7 @@ extern "C" {
* unless specifically set by the model definition:
*
* + PPC_INTERRUPT_MAX - 16
- * + PPC_CACHE_ALIGNMENT - 32
+ * + PPC_CACHE_ALIGNMENT
* + PPC_LOW_POWER_MODE - PPC_LOW_POWER_MODE_NONE
* + PPC_HAS_EXCEPTION_PREFIX - 1
* + PPC_USE_MULTIPLE - 0
@@ -293,14 +293,8 @@ extern "C" {
#define PPC_INTERRUPT_MAX 16
#endif
-/*
- * Unless specified otherwise, the cache line size is defaulted to 32.
- *
- * The derive the power of 2 the cache line is.
- */
-
#ifndef PPC_CACHE_ALIGNMENT
-#define PPC_CACHE_ALIGNMENT 32
+#define PPC_CACHE_ALIGNMENT PPC_DEFAULT_CACHE_LINE_SIZE
#endif
#if (PPC_CACHE_ALIGNMENT == 16)