Changeset 21275b58 in rtems for cpukit/rtems/src/timercreate.c


Ignore:
Timestamp:
Nov 22, 2018, 6:14:51 PM (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
6b0a729b
Parents:
0f5b2c09
git-author:
Sebastian Huber <sebastian.huber@…> (11/22/18 18:14:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/14/18 06:03:29)
Message:

score: Static Objects_Information initialization

Statically allocate the objects information together with the initial
set of objects either via <rtems/confdefs.h>. Provide default object
informations with zero objects via librtemscpu.a. This greatly
simplifies the workspace size estimate. RTEMS applications which do not
use the unlimited objects option are easier to debug since all objects
reside now in statically allocated objects of the right types.

Close #3621.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/timercreate.c

    r0f5b2c09 r21275b58  
    2828#include <rtems/score/todimpl.h>
    2929#include <rtems/score/watchdogimpl.h>
     30#include <rtems/sysinit.h>
    3031
    3132RTEMS_STATIC_ASSERT(
     
    3334  TIMER_CLASS_BIT_TIME_OF_DAY
    3435);
     36
     37Timer_server_Control *volatile _Timer_server;
    3538
    3639void _Timer_Routine_adaptor( Watchdog_Control *the_watchdog )
     
    213216  return RTEMS_SUCCESSFUL;
    214217}
     218
     219static void _Timer_Manager_initialization( void )
     220{
     221  _Objects_Initialize_information( &_Timer_Information );
     222}
     223
     224RTEMS_SYSINIT_ITEM(
     225  _Timer_Manager_initialization,
     226  RTEMS_SYSINIT_CLASSIC_TIMER,
     227  RTEMS_SYSINIT_ORDER_MIDDLE
     228);
Note: See TracChangeset for help on using the changeset viewer.