bsp/arm: RTEMS_SMP to arm erratum 764369 detection

Move the RTEMS_SMP conditional compilation to the detection method of arm erratum 764369
This commit is contained in:
Ralf Kirchner
2014-04-16 16:07:13 +02:00
committed by Sebastian Huber
parent 707b617294
commit e331e69a47
3 changed files with 8 additions and 10 deletions

View File

@@ -46,14 +46,10 @@ extern "C" {
- 1 )
/* Errata Handlers */
#if ( defined( RTEMS_SMP ) )
#define ARM_CACHE_L1_ERRATA_764369_HANDLER() \
if( arm_errata_is_applicable_processor_errata_764369() ) { \
_ARM_Data_synchronization_barrier(); \
}
#else /* #if ( defined( RTEMS_SMP ) ) */
#define ARM_CACHE_L1_ERRATA_764369_HANDLER()
#endif /* #if ( defined( RTEMS_SMP ) ) */
#define ARM_CACHE_L1_ERRATA_764369_HANDLER() \
if( arm_errata_is_applicable_processor_errata_764369() ) { \
_ARM_Data_synchronization_barrier(); \
}
static void arm_cache_l1_select( const uint32_t selection )