summaryrefslogtreecommitdiff
path: root/cpukit/score/src/coretodtickle.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/coretodtickle.c')
-rw-r--r--cpukit/score/src/coretodtickle.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/src/coretodtickle.c b/cpukit/score/src/coretodtickle.c
index 9116fc1a3b..4adba8f7e0 100644
--- a/cpukit/score/src/coretodtickle.c
+++ b/cpukit/score/src/coretodtickle.c
@@ -22,6 +22,11 @@
#include <rtems/score/watchdogimpl.h>
#include <rtems/config.h>
+#ifdef __leon__
+ /* Hack used until API has been defined */
+ void leon3_clear_timer_interrupt_pending_bit(void);
+#endif
+
void _TOD_Tickle_ticks( void )
{
TOD_Control *tod = &_TOD;
@@ -39,6 +44,11 @@ void _TOD_Tickle_ticks( void )
_TOD_Acquire( tod, &lock_context );
+#ifdef __leon__
+ /* Hack used until API has been defined */
+ leon3_clear_timer_interrupt_pending_bit();
+#endif
+
/* Update the uptime */
_Timestamp_Add_to( &tod->uptime, &tick );