diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-08 07:40:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-08 07:40:22 +0200 |
commit | 9baffdf7e462676de6cb68e4ec364d0a19471964 (patch) | |
tree | 68bf0ff1c13b00d6f5c10bad2ff7b29878c1c723 /cpukit/score/src/watchdogtickssinceboot.c | |
parent | lm32 BSPs: Add lm32_evr variant for running on gdb. (diff) | |
download | rtems-9baffdf7e462676de6cb68e4ec364d0a19471964.tar.bz2 |
score: Move _Watchdog_Ticks_since_boot definition
Diffstat (limited to 'cpukit/score/src/watchdogtickssinceboot.c')
-rw-r--r-- | cpukit/score/src/watchdogtickssinceboot.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/score/src/watchdogtickssinceboot.c b/cpukit/score/src/watchdogtickssinceboot.c new file mode 100644 index 0000000000..668348c0d5 --- /dev/null +++ b/cpukit/score/src/watchdogtickssinceboot.c @@ -0,0 +1,29 @@ +/** + * @file + * + * @brief Watchdog Ticks Since Boot + * @ingroup ScoreWatchdog + */ + +/* + * COPYRIGHT (c) 1989-2009. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include <rtems/score/watchdog.h> + +/* + * This is defined in a separate module to allow the new network to define it + * with an additional strong reference. Strong references cannot alias a + * common symbol. Since the GCC option -fno-common is not used throughout + * RTEMS we cannot define it here. + */ +volatile Watchdog_Interval _Watchdog_Ticks_since_boot; |