forked from Imagelibrary/rtems
score: Add _SMP_Broadcast_action()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
4
bsps/shared/cache/cacheimpl.h
vendored
4
bsps/shared/cache/cacheimpl.h
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user