[PATCH 4/4] score: use 64-bit watchdog intervals

Gedare Bloom gedare at rtems.org
Thu Jun 23 19:26:47 UTC 2016


updates #2732
---
 cpukit/score/include/rtems/score/watchdog.h | 2 +-
 testsuites/sptests/sp37/init.c              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/include/rtems/score/watchdog.h b/cpukit/score/include/rtems/score/watchdog.h
index 11a5974..1f4c3e1 100644
--- a/cpukit/score/include/rtems/score/watchdog.h
+++ b/cpukit/score/include/rtems/score/watchdog.h
@@ -50,7 +50,7 @@ typedef struct Watchdog_Control Watchdog_Control;
  *
  *  This type is used to specify the length of intervals.
  */
-typedef uint32_t   Watchdog_Interval;
+typedef uint64_t   Watchdog_Interval;
 
 /**
  *  @brief The clock discipline to use for the Watchdog timeout interval.
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index 68b28a6..6747ad3 100644
--- a/testsuites/sptests/sp37/init.c
+++ b/testsuites/sptests/sp37/init.c
@@ -251,7 +251,7 @@ static void test_clock_tick_functions( void )
   rtems_test_assert( rtems_clock_get_ticks_since_boot() == 0xdeadbeef );
 
   rtems_test_assert( rtems_clock_tick_later( 0 ) == 0xdeadbeef );
-  rtems_test_assert( rtems_clock_tick_later( 0x8160311e ) == 0x600df00d );
+  rtems_test_assert( rtems_clock_tick_later( 0x8160311e ) == 0x1600df00dULL );
 
   _Watchdog_Ticks_since_boot = 0;
   rtems_test_assert( rtems_clock_tick_later_usec( 0 ) == 1 );
-- 
1.9.1




More information about the devel mailing list