summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-03 11:46:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-06 15:29:16 +0200
commit3dfe55ee154b6053e936e7b458206b71aad51caa (patch)
treeb455d560a13cccc855c3259c67f3fafa20f4fb97 /c/src/lib/libbsp/shared
parentxz: Suppress attribute warnings (diff)
downloadrtems-3dfe55ee154b6053e936e7b458206b71aad51caa.tar.bz2
score: Use <sys/bitset.h> for Processor_mask
Implement the Processor_mask via <sys/bitset.h>. Provide _Processor_mask_To_uint32_t() to enable its use in device specific routines, e.g. interrupt affinity register in an interrupt controller. Update #3059.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/clockdrv_shell.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/clockdrv_shell.h b/c/src/lib/libbsp/shared/clockdrv_shell.h
index 2b90fe6f82..bf741339ae 100644
--- a/c/src/lib/libbsp/shared/clockdrv_shell.h
+++ b/c/src/lib/libbsp/shared/clockdrv_shell.h
@@ -80,7 +80,7 @@ static void Clock_driver_timecounter_tick( void )
if ( _Per_CPU_Is_boot_processor( cpu ) ) {
rtems_timecounter_tick();
- } else if ( _Processor_mask_Is_set( _SMP_Online_processors, cpu_index ) ) {
+ } else if ( _Processor_mask_Is_set( &_SMP_Online_processors, cpu_index ) ) {
_Watchdog_Tick( cpu );
}
}
@@ -227,7 +227,7 @@ rtems_device_driver Clock_initialize(
Clock_driver_support_install_isr( Clock_isr, Old_ticker );
#ifdef RTEMS_SMP
- Clock_driver_support_set_interrupt_affinity( _SMP_Online_processors );
+ Clock_driver_support_set_interrupt_affinity( &_SMP_Online_processors );
#endif
/*