[rtems commit] bsp/arm: Remove arm erratum 764369 from L2 cache

Sebastian Huber sebh at rtems.org
Thu Apr 17 11:21:10 UTC 2014


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

Author:    Ralf Kirchner <ralf.kirchner at embedded-brains.de>
Date:      Thu Apr 17 10:30:54 2014 +0200

bsp/arm: Remove arm erratum 764369 from L2 cache

Arm erratum 764369 only applies to the level 1 cache.

---

 c/src/lib/libbsp/arm/shared/arm-l2c-310/cache_.h |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/c/src/lib/libbsp/arm/shared/arm-l2c-310/cache_.h b/c/src/lib/libbsp/arm/shared/arm-l2c-310/cache_.h
index 2c1eb8f..f96e837 100644
--- a/c/src/lib/libbsp/arm/shared/arm-l2c-310/cache_.h
+++ b/c/src/lib/libbsp/arm/shared/arm-l2c-310/cache_.h
@@ -898,16 +898,6 @@ static bool l2c_310_cache_errata_is_applicable_754670(
 }
 #endif /* CACHE_ERRATA_CHECKS_FOR_IMPLEMENTED_ERRATAS */
 
-/* Errata Handlers */
-#if ( defined( RTEMS_SMP ) )
-  #define CACHE_ARM_ERRATA_764369_HANDLER()                    \
-    if( arm_errata_is_applicable_processor_errata_764369() ) { \
-      _ARM_Data_synchronization_barrier();                     \
-    }                                           
-#else /* #if ( defined( RTEMS_SMP ) ) */
-  #define CACHE_ARM_ERRATA_764369_HANDLER()
-#endif /* #if ( defined( RTEMS_SMP ) ) */
-
 /* The common workaround for this erratum would be to add a 
  * data synchronization barrier to the beginning of the abort handler.
  * But for RTEMS a call of the abort handler means a fatal condition anyway. 
@@ -1074,8 +1064,6 @@ cache_l2c_310_flush_range( const void *addr, size_t n_bytes )
       ( (uint32_t) addr + n_bytes - 1 ) & ~CACHE_L2C_310_DATA_LINE_MASK;
     volatile L2CC *l2cc      = (volatile L2CC *) BSP_ARM_L2CC_BASE;
 
-    CACHE_ARM_ERRATA_764369_HANDLER();
-
     for (; adx <= ADDR_LAST; adx += CPU_DATA_CACHE_ALIGNMENT ) {
       l2cc->clean_pa = adx;
     }
@@ -1405,7 +1393,6 @@ _CPU_cache_invalidate_data_range(
 )
 {
   if ( n_bytes > 0 ) {
-    CACHE_ARM_ERRATA_764369_HANDLER();
     
     cache_l2c_310_invalidate_range(
       addr_first,
@@ -1470,7 +1457,6 @@ _CPU_cache_invalidate_instruction_range(
 )
 {
   if ( n_bytes != 0 ) {
-   CACHE_ARM_ERRATA_764369_HANDLER();
     
     /* Invalidate L2 cache lines */
     cache_l2c_310_invalidate_range(




More information about the vc mailing list