[PATCH] score: Add missing define to cache manager

Daniel Cederman cederman at gaisler.com
Mon Aug 25 06:48:17 UTC 2014


---
 c/src/lib/libcpu/shared/src/cache_manager.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/c/src/lib/libcpu/shared/src/cache_manager.c b/c/src/lib/libcpu/shared/src/cache_manager.c
index 7dd408f..7ff1166 100644
--- a/c/src/lib/libcpu/shared/src/cache_manager.c
+++ b/c/src/lib/libcpu/shared/src/cache_manager.c
@@ -435,6 +435,7 @@ rtems_cache_disable_data( void )
  * and then perform the invalidations.
  */
 
+#if defined(CPU_INSTRUCTION_CACHE_ALIGNMENT)
 #if !defined(CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS)
 static void
 _invalidate_multiple_instruction_lines_no_range_functions(
@@ -462,6 +463,7 @@ _invalidate_multiple_instruction_lines_no_range_functions(
   }
 }
 #endif
+#endif
 
 void
 rtems_cache_invalidate_multiple_instruction_lines(
-- 
1.7.9.5



More information about the devel mailing list