Changeset e331e69 in rtems


Ignore:
Timestamp:
Apr 16, 2014, 2:07:13 PM (6 years ago)
Author:
Ralf Kirchner <ralf.kirchner@…>
Branches:
4.11, master
Children:
9ee2ec5
Parents:
707b6172
git-author:
Ralf Kirchner <ralf.kirchner@…> (04/16/14 14:07:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/17/14 11:25:11)
Message:

bsp/arm: RTEMS_SMP to arm erratum 764369 detection

Move the RTEMS_SMP conditional compilation to the detection method of arm erratum 764369

Location:
c/src/lib/libbsp/arm/shared/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/include/arm-a9mpcore-start.h

    r707b6172 re331e69  
    8484arm_a9mpcore_start_errata_764369_handler(volatile a9mpcore_scu *scu)
    8585{
    86 #ifdef RTEMS_SMP
    8786  if (arm_errata_is_applicable_processor_errata_764369()) {
    8887    scu->diagn_ctrl |= A9MPCORE_SCU_DIAGN_CTRL_MIGRATORY_BIT_DISABLE;
    8988  }
    90 #endif
    9189}
    9290
  • c/src/lib/libbsp/arm/shared/include/arm-cache-l1.h

    r707b6172 re331e69  
    4747
    4848/* Errata Handlers */
    49 #if ( defined( RTEMS_SMP ) )
    50   #define ARM_CACHE_L1_ERRATA_764369_HANDLER()                 \
    51     if( arm_errata_is_applicable_processor_errata_764369() ) { \
    52       _ARM_Data_synchronization_barrier();                     \
    53     }                                           
    54 #else /* #if ( defined( RTEMS_SMP ) ) */
    55   #define ARM_CACHE_L1_ERRATA_764369_HANDLER()
    56 #endif /* #if ( defined( RTEMS_SMP ) ) */
     49#define ARM_CACHE_L1_ERRATA_764369_HANDLER()                 \
     50  if( arm_errata_is_applicable_processor_errata_764369() ) { \
     51    _ARM_Data_synchronization_barrier();                     \
     52  }
    5753
    5854   
  • c/src/lib/libbsp/arm/shared/include/arm-errata.h

    r707b6172 re331e69  
    4848
    4949#if defined( __ARM_ARCH_7A__ )
     50#if ( defined( RTEMS_SMP ) )
    5051static bool arm_errata_is_applicable_processor_errata_764369(
    5152  void
     
    8586  return is_applicable;
    8687}
     88#else
     89  #define arm_errata_is_applicable_processor_errata_764369() false
     90#endif /*  ( defined( RTEMS_SMP ) ) */
    8791#endif /* #if defined( __ARM_ARCH_7A__ ) */
    8892
Note: See TracChangeset for help on using the changeset viewer.