diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-18 13:20:08 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-19 09:59:42 +0100 |
commit | b1d08a58b2484797e90da3cc6c045c050095d9cd (patch) | |
tree | 2f8b90a81d8501b7ecc6d275b1fec706aacc408c /cpukit/score/src | |
parent | score: Move _SMP_Handler_initialize() (diff) | |
download | rtems-b1d08a58b2484797e90da3cc6c045c050095d9cd.tar.bz2 |
score: Initialize per-CPU locks
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/smp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index bfd77dcdd9..5e098e645a 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -34,6 +34,12 @@ void _SMP_Handler_initialize( void ) uint32_t max_cpus = rtems_configuration_get_maximum_processors(); uint32_t cpu; + for ( cpu = 0 ; cpu < max_cpus; ++cpu ) { + Per_CPU_Control *per_cpu = _Per_CPU_Get_by_index( cpu ); + + _ISR_lock_Initialize( &per_cpu->lock ); + } + /* * Discover and initialize the secondary cores in an SMP system. */ |