Changeset b5bdecf in rtems
- Timestamp:
- 01/18/19 11:54:05 (5 years ago)
- Branches:
- 5, master
- Children:
- 41310c02
- Parents:
- 93e3b341
- git-author:
- Sebastian Huber <sebastian.huber@…> (01/18/19 11:54:05)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (01/18/19 12:33:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/src/smpmulticastaction.c
r93e3b341 rb5bdecf 12 12 13 13 #include <rtems/score/smpimpl.h> 14 #include <rtems/score/ smplock.h>14 #include <rtems/score/isrlock.h> 15 15 #include <rtems/score/chainimpl.h> 16 16 #include <rtems/score/sysstate.h> … … 25 25 26 26 typedef struct { 27 SMP_lock_Control Lock;27 ISR_lock_Control Lock; 28 28 Chain_Control Actions; 29 29 } SMP_Multicast_context; 30 30 31 31 static SMP_Multicast_context _SMP_Multicast = { 32 .Lock = SMP_LOCK_INITIALIZER( "SMP Multicast Action" ),32 .Lock = ISR_LOCK_INITIALIZER( "SMP Multicast Action" ), 33 33 .Actions = CHAIN_INITIALIZER_EMPTY( _SMP_Multicast.Actions ) 34 34 }; … … 36 36 void _SMP_Multicast_actions_process( void ) 37 37 { 38 SMP_lock_Context lock_context;38 ISR_lock_Context lock_context; 39 39 uint32_t cpu_self_index; 40 40 SMP_Multicast_action *node; 41 41 SMP_Multicast_action *next; 42 42 43 _ SMP_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );43 _ISR_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context ); 44 44 cpu_self_index = _SMP_Get_current_processor(); 45 45 node = (SMP_Multicast_action *) _Chain_First( &_SMP_Multicast.Actions ); … … 62 62 } 63 63 64 _ SMP_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );64 _ISR_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context ); 65 65 } 66 66 … … 98 98 SMP_Multicast_action node; 99 99 Processor_mask targets; 100 SMP_lock_Context lock_context;100 ISR_lock_Context lock_context; 101 101 uint32_t i; 102 102 … … 124 124 _Atomic_Store_ulong( &node.done, 0, ATOMIC_ORDER_RELAXED ); 125 125 126 _ SMP_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );126 _ISR_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context ); 127 127 _Chain_Prepend_unprotected( &_SMP_Multicast.Actions, &node.Node ); 128 _ SMP_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );128 _ISR_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context ); 129 129 130 130 _SMP_Send_message_multicast( &targets, SMP_MESSAGE_MULTICAST_ACTION );
Note: See TracChangeset
for help on using the changeset viewer.