diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-14 14:52:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 10:00:52 +0100 |
commit | 26335844f484c8cd061444cebba9480b62d165cb (patch) | |
tree | ccfc446db291d329a723c6f1eb22e570216bc63b /cpukit/rtems/src/rtemstimer.c | |
parent | Optional Classic Tasks initialization (diff) | |
download | rtems-26335844f484c8cd061444cebba9480b62d165cb.tar.bz2 |
Optional Classic Timer initialization
Update #2408.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/src/rtemstimer.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/cpukit/rtems/src/rtemstimer.c b/cpukit/rtems/src/rtemstimer.c index 259a81c2fb..f591c25af2 100644 --- a/cpukit/rtems/src/rtemstimer.c +++ b/cpukit/rtems/src/rtemstimer.c @@ -20,13 +20,16 @@ #include <rtems/system.h> #include <rtems/config.h> +#include <rtems/sysinit.h> #include <rtems/rtems/status.h> #include <rtems/rtems/support.h> -#include <rtems/score/thread.h> #include <rtems/rtems/timerimpl.h> -#include <rtems/score/watchdog.h> -void _Timer_Manager_initialization(void) +Timer_server_Control *volatile _Timer_server; + +Objects_Information _Timer_Information; + +static void _Timer_Manager_initialization(void) { _Objects_Initialize_information( &_Timer_Information, /* object information table */ @@ -43,11 +46,10 @@ void _Timer_Manager_initialization(void) NULL /* Proxy extraction support callout */ #endif ); - - /* - * Initialize the pointer to the default timer server control block to NULL - * indicating that task-based timer support is not initialized. - */ - - _Timer_server = NULL; } + +RTEMS_SYSINIT_ITEM( + _Timer_Manager_initialization, + RTEMS_SYSINIT_CLASSIC_TIMER, + RTEMS_SYSINIT_ORDER_MIDDLE +); |