Split Classic API data instantiation into individual files. This reduces the size of the BSS section when an optional manageer stub is used. Some tests showed about a 600 byte reduction in BSS size. Also eliminated the variables _RTEMS_tasks_User_initialization_tasks and _RTEMS_tasks_Number_of_initialization_tasks because they were only used in one place after initialized. It was a waste of space.

This commit is contained in:
Joel Sherrill
2007-05-21 23:19:36 +00:00
parent e49e84c9ab
commit 6f1384cd4f
29 changed files with 350 additions and 69 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* Extension Manager -- Instantiate Data
*
* COPYRIGHT (c) 1989-2007.
* 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.com/license/LICENSE.
*
* $Id$
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
/* instantiate extension data */
#define SAPI_EXT_EXTERN
#include <rtems/system.h>
#include <rtems/extension.h>
+1 -5
View File
@@ -72,11 +72,7 @@ void _RTEMS_API_Initialize(
_Multiprocessing_Manager_initialization();
#endif
_RTEMS_tasks_Manager_initialization(
api_configuration->maximum_tasks,
api_configuration->number_of_initialization_tasks,
api_configuration->User_initialization_tasks_table
);
_RTEMS_tasks_Manager_initialization( api_configuration->maximum_tasks );
_Timer_Manager_initialization( api_configuration->maximum_timers );