From 6cef3f16b6b8e2187c1c0f85ece8846556775483 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 11 Nov 2021 14:23:31 +0100 Subject: score: Do not shadow parameter --- cpukit/score/src/coretodset.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/score/src/coretodset.c') 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; -- cgit v1.2.3