Ignore:
Timestamp:
May 31, 2013, 11:59:34 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
db42c079
Parents:
bd39add
git-author:
Sebastian Huber <sebastian.huber@…> (05/31/13 11:59:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/13 13:20:32)
Message:

smp: Add ARM support

File:
1 edited

Legend:

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

    rbd39add rf2f211c5  
    439439
    440440void _CPU_Context_validate( uintptr_t pattern );
     441
     442#ifdef RTEMS_SMP
     443  #define _CPU_Context_switch_to_first_task_smp( _context ) \
     444    _CPU_Context_restore( _context )
     445
     446  static inline void _ARM_Data_memory_barrier( void )
     447  {
     448    __asm__ volatile ( "dmb" : : : "memory" );
     449  }
     450
     451  static inline void _ARM_Data_synchronization_barrier( void )
     452  {
     453    __asm__ volatile ( "dsb" : : : "memory" );
     454  }
     455
     456  static inline void _ARM_Send_event( void )
     457  {
     458    __asm__ volatile ( "sev" : : : "memory" );
     459  }
     460
     461  static inline void _ARM_Wait_for_event( void )
     462  {
     463    __asm__ volatile ( "wfe" : : : "memory" );
     464  }
     465
     466  static inline void _CPU_Processor_event_broadcast( void )
     467  {
     468    _ARM_Data_synchronization_barrier();
     469    _ARM_Send_event();
     470  }
     471
     472  static inline void _CPU_Processor_event_receive( void )
     473  {
     474    _ARM_Wait_for_event();
     475    _ARM_Data_memory_barrier();
     476  }
     477#endif
     478
    441479
    442480static inline uint32_t CPU_swap_u32( uint32_t value )
Note: See TracChangeset for help on using the changeset viewer.