[rtems commit] bsps: Add CPU_CACHE_SUPPORT_PROVIDES_DISABLE_DATA

Sebastian Huber sebh at rtems.org
Fri Dec 21 09:33:11 UTC 2018


Module:    rtems
Branch:    master
Commit:    b0c2d482353fc92047e64ed91a274f0f297d0555
Changeset: http://git.rtems.org/rtems/commit/?id=b0c2d482353fc92047e64ed91a274f0f297d0555

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec 21 07:49:47 2018 +0100

bsps: Add CPU_CACHE_SUPPORT_PROVIDES_DISABLE_DATA

Update #3667.

---

 bsps/shared/cache/cacheimpl.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bsps/shared/cache/cacheimpl.h b/bsps/shared/cache/cacheimpl.h
index aa385bf..cb7f02d 100644
--- a/bsps/shared/cache/cacheimpl.h
+++ b/bsps/shared/cache/cacheimpl.h
@@ -63,6 +63,13 @@
  *
  * The cache implementation source file shall define
  *
+ *  #define CPU_CACHE_SUPPORT_PROVIDES_DISABLE_DATA
+ *
+ * if an external implementation of rtems_cache_disable_data() is provided,
+ * e.g. as an implementation in assembly code.
+ *
+ * The cache implementation source file shall define
+ *
  *  #define CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING
  *
  * if the hardware provides no instruction cache snooping and the instruction
@@ -241,6 +248,7 @@ rtems_cache_enable_data( void )
 #endif
 }
 
+#if !defined(CPU_CACHE_SUPPORT_PROVIDES_DISABLE_DATA)
 void
 rtems_cache_disable_data( void )
 {
@@ -248,6 +256,7 @@ rtems_cache_disable_data( void )
   _CPU_cache_disable_data();
 #endif
 }
+#endif
 
 /*
  * THESE FUNCTIONS ONLY HAVE BODIES IF WE HAVE AN INSTRUCTION CACHE



More information about the vc mailing list