summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coretodset.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-11 14:23:31 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-15 08:56:53 +0100
commit6cef3f16b6b8e2187c1c0f85ece8846556775483 (patch)
tree2a89c629e8c06efd4a65f16b23d5aca2ecd80ce4 /cpukit/score/src/coretodset.c
parentoptvermaj.yml: Allow __RTEMS_MAJOR__ to be overridden so RTEMS 7 tools can be... (diff)
downloadrtems-6cef3f16b6b8e2187c1c0f85ece8846556775483.tar.bz2
score: Do not shadow parameter
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/coretodset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c
index b04242a0da..644cac554b 100644
--- a/cpukit/score/src/coretodset.c
+++ b/cpukit/score/src/coretodset.c
@@ -52,13 +52,13 @@ Status_Control _TOD_Set(
for ( cpu_index = 0 ; cpu_index < cpu_max ; ++cpu_index ) {
Per_CPU_Control *cpu;
Watchdog_Header *header;
- ISR_lock_Context lock_context;
+ ISR_lock_Context lock_context_2;
Watchdog_Control *first;
cpu = _Per_CPU_Get_by_index( cpu_index );
header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_REALTIME ];
- _ISR_lock_ISR_disable_and_acquire( &cpu->Watchdog.Lock, &lock_context );
+ _ISR_lock_ISR_disable_and_acquire( &cpu->Watchdog.Lock, &lock_context_2 );
first = _Watchdog_Header_first( header );
@@ -68,11 +68,11 @@ Status_Control _TOD_Set(
first,
tod_as_ticks,
&cpu->Watchdog.Lock,
- &lock_context
+ &lock_context_2
);
}
- _ISR_lock_Release_and_ISR_enable( &cpu->Watchdog.Lock, &lock_context );
+ _ISR_lock_Release_and_ISR_enable( &cpu->Watchdog.Lock, &lock_context_2 );
}
_TOD.is_set = true;