From 6f1384cd4ff2518fbbde7fe99f4cbc7112ec14fc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 21 May 2007 23:19:36 +0000 Subject: 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. --- cpukit/rtems/include/rtems/rtems/timer.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'cpukit/rtems/include/rtems/rtems/timer.h') diff --git a/cpukit/rtems/include/rtems/rtems/timer.h b/cpukit/rtems/include/rtems/rtems/timer.h index a246678480..fdb9185d00 100644 --- a/cpukit/rtems/include/rtems/rtems/timer.h +++ b/cpukit/rtems/include/rtems/rtems/timer.h @@ -23,7 +23,7 @@ * + reset a timer * + cancel a time * - * COPYRIGHT (c) 1989-2002. + * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -36,12 +36,17 @@ #ifndef _RTEMS_RTEMS_TIMER_H #define _RTEMS_RTEMS_TIMER_H +#ifndef RTEMS_TIMER_EXTERN +#define RTEMS_TIMER_EXTERN extern +#endif + #ifdef __cplusplus extern "C" { #endif #include #include +#include #include #include @@ -74,7 +79,7 @@ typedef rtems_timer_service_routine ( *rtems_timer_service_routine_entry )( * this class of objects. */ -RTEMS_EXTERN Objects_Information _Timer_Information; +RTEMS_TIMER_EXTERN Objects_Information _Timer_Information; /* * Pointer to TCB of the Timer Server. This is NULL before the @@ -82,7 +87,7 @@ RTEMS_EXTERN Objects_Information _Timer_Information; * initiated until the server is started. */ -RTEMS_EXTERN Thread_Control *_Timer_Server; +RTEMS_TIMER_EXTERN Thread_Control *_Timer_Server; /* * The following chains contain the list of interval timers that are -- cgit v1.2.3