summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coretodsecondssinceepoch.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/coretodsecondssinceepoch.c')
-rw-r--r--cpukit/score/src/coretodsecondssinceepoch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/coretodsecondssinceepoch.c b/cpukit/score/src/coretodsecondssinceepoch.c
index 91445c0c80..620ad3dd4b 100644
--- a/cpukit/score/src/coretodsecondssinceepoch.c
+++ b/cpukit/score/src/coretodsecondssinceepoch.c
@@ -21,12 +21,12 @@
uint32_t _TOD_Seconds_since_epoch( void )
{
TOD_Control *tod = &_TOD;
- ISR_Level level;
+ ISR_lock_Context lock_context;
Timestamp_Control now;
- _TOD_Acquire( tod, level );
+ _TOD_Acquire( tod, &lock_context );
now = tod->now;
- _TOD_Release( tod, level );
+ _TOD_Release( tod, &lock_context );
return _Timestamp_Get_seconds( &now );
}