Changeset 7c90670 in rtems


Ignore:
Timestamp:
Jun 2, 2014, 11:23:07 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d8ac087
Parents:
606ed52
git-author:
Sebastian Huber <sebastian.huber@…> (06/02/14 11:23:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/02/14 11:48:58)
Message:

arm: Add ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS

Location:
cpukit/score/cpu/arm/rtems/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/arm/rtems/score/arm.h

    r606ed52 r7c90670  
    4343  #define ARM_MULTILIB_HAS_WFI
    4444  #define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
     45  #define ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
    4546#endif
    4647
  • cpukit/score/cpu/arm/rtems/score/cpu.h

    r606ed52 r7c90670  
    302302static inline void _ARM_Data_memory_barrier( void )
    303303{
     304#ifdef ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
    304305  __asm__ volatile ( "dmb" : : : "memory" );
     306#endif
    305307}
    306308
    307309static inline void _ARM_Data_synchronization_barrier( void )
    308310{
     311#ifdef ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
    309312  __asm__ volatile ( "dsb" : : : "memory" );
     313#endif
    310314}
    311315
    312316static inline void _ARM_Instruction_synchronization_barrier( void )
    313317{
     318#ifdef ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
    314319  __asm__ volatile ( "isb" : : : "memory" );
     320#endif
    315321}
    316322
Note: See TracChangeset for help on using the changeset viewer.