diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-03 11:46:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-06 15:29:16 +0200 |
commit | 3dfe55ee154b6053e936e7b458206b71aad51caa (patch) | |
tree | b455d560a13cccc855c3259c67f3fafa20f4fb97 /c/src/lib/libbsp/shared | |
parent | xz: Suppress attribute warnings (diff) | |
download | rtems-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.h | 4 |
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 /* |