score: Add _SMP_Broadcast_action()

This commit is contained in:
Sebastian Huber
2019-04-18 06:47:01 +02:00
parent 9f52acb5e5
commit 658700449d
6 changed files with 64 additions and 20 deletions

View File

@@ -124,7 +124,7 @@ static void a9mpcore_clock_secondary_initialization(
.interval = interval
};
_SMP_Multicast_action(NULL, a9mpcore_clock_secondary_action, &init_data);
_SMP_Broadcast_action(a9mpcore_clock_secondary_action, &init_data);
if (cmpval - a9mpcore_clock_get_counter(gt) >= interval) {
bsp_fatal(BSP_ARM_A9MPCORE_FATAL_CLOCK_SMP_INIT);

View File

@@ -135,7 +135,7 @@ static void arm_gt_clock_secondary_action(void *arg)
static void arm_gt_clock_secondary_initialization(uint64_t cval)
{
#if defined(RTEMS_SMP) && !defined(CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR)
_SMP_Multicast_action(NULL, arm_gt_clock_secondary_action, &cval);
_SMP_Broadcast_action(arm_gt_clock_secondary_action, &cval);
#endif
}

View File

@@ -329,7 +329,7 @@ rtems_cache_invalidate_multiple_instruction_lines(
#if defined(RTEMS_SMP) && defined(CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING)
smp_cache_area area = { i_addr, n_bytes };
_SMP_Multicast_action( NULL, smp_cache_inst_inv, &area );
_SMP_Broadcast_action( smp_cache_inst_inv, &area );
#else
_CPU_cache_invalidate_instruction_range( i_addr, n_bytes );
#endif
@@ -345,7 +345,7 @@ rtems_cache_invalidate_entire_instruction( void )
{
#if defined(CPU_INSTRUCTION_CACHE_ALIGNMENT)
#if defined(RTEMS_SMP) && defined(CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING)
_SMP_Multicast_action( NULL, smp_cache_inst_inv_all, NULL );
_SMP_Broadcast_action( smp_cache_inst_inv_all, NULL );
#else
_CPU_cache_invalidate_entire_instruction();
#endif