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/sem.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cpukit/rtems/include/rtems/rtems/sem.h') diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h index 3c628717c4..a5cb09f3fd 100644 --- a/cpukit/rtems/include/rtems/rtems/sem.h +++ b/cpukit/rtems/include/rtems/rtems/sem.h @@ -16,7 +16,7 @@ * + acquire a semaphore * + release a semaphore * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -29,6 +29,10 @@ #ifndef _RTEMS_RTEMS_SEM_H #define _RTEMS_RTEMS_SEM_H +#ifndef RTEMS_SEM_EXTERN +#define RTEMS_SEM_EXTERN extern +#endif + #ifdef __cplusplus extern "C" { #endif @@ -59,7 +63,7 @@ typedef struct { * this class of objects. */ -RTEMS_EXTERN Objects_Information _Semaphore_Information; +RTEMS_SEM_EXTERN Objects_Information _Semaphore_Information; /* * _Semaphore_Manager_initialization -- cgit v1.2.3