summaryrefslogtreecommitdiffstats
path: root/bsps/sparc/leon2/start/cache.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bsps/sparc/leon2/start/cache.c (renamed from c/src/lib/libcpu/sparc/cache/cache_.h)11
1 files changed, 2 insertions, 9 deletions
diff --git a/c/src/lib/libcpu/sparc/cache/cache_.h b/bsps/sparc/leon2/start/cache.c
index 3d4ea69f8b..5597bd81cf 100644
--- a/c/src/lib/libcpu/sparc/cache/cache_.h
+++ b/bsps/sparc/leon2/start/cache.c
@@ -2,9 +2,6 @@
* SPARC Cache Manager Support
*/
-#ifndef __SPARC_CACHE_h
-#define __SPARC_CACHE_h
-
/*
* CACHE MANAGER: The following functions are CPU-specific.
* They provide the basic implementation for the rtems_* cache
@@ -14,8 +11,7 @@
* FIXME: Some functions simply have not been implemented.
*/
-/* This define is set in a Makefile */
-#if defined(HAS_INSTRUCTION_CACHE)
+#include <stddef.h>
#define CPU_INSTRUCTION_CACHE_ALIGNMENT 0
@@ -52,7 +48,4 @@ static inline void _CPU_cache_disable_instruction ( void )
{
}
-#endif /* defined(HAS_INSTRUCTION_CACHE) */
-
-#endif
-/* end of include file */
+#include "../../../shared/cache/cacheimpl.h"