summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/shared/src/cache_.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared/src/cache_.h')
-rw-r--r--c/src/lib/libcpu/powerpc/shared/src/cache_.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/src/cache_.h b/c/src/lib/libcpu/powerpc/shared/src/cache_.h
index bff8874587..2477cf78f5 100644
--- a/c/src/lib/libcpu/powerpc/shared/src/cache_.h
+++ b/c/src/lib/libcpu/powerpc/shared/src/cache_.h
@@ -4,6 +4,11 @@
#ifndef __POWERPC_CACHE_h
#define __POWERPC_CACHE_h
+/*
+ * get definitions from the score/powerpc header
+ * about individual cache alignments
+ */
+#include <rtems/score/powerpc.h>
/*
* CACHE MANAGER: The following functions are CPU-specific.
@@ -14,17 +19,16 @@
* FIXME: Some functions simply have not been implemented.
*/
-#if defined(ppc603) /* And possibly others */
-#define CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT
-#define CPU_INSTRUCTION_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT
+#if defined(ppc603) || defined(ppc603e) || defined(mpc8260)
+ /* And possibly others */
-#elif ( defined(mpc860) || defined(mpc821) )
+#if defined(PPC_CACHE_ALIGNMENT)
#define CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT
#define CPU_INSTRUCTION_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT
#endif
-
+#endif
#include <libcpu/cache.h>
#endif