Changeset c627b2a in rtems


Ignore:
Timestamp:
05/28/96 21:40:52 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
974ff40
Parents:
c6fa38c0
Message:

split the inclusion of "EXTERN" data based on whether it was sapi,
score, rtems api, or posix api related.

Files:
3 added
134 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/headers/cond.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242 
    43 EXTERN Objects_Information  _POSIX_Condition_variables_Information;
     43POSIX_EXTERN Objects_Information  _POSIX_Condition_variables_Information;
    4444 
    4545/*
  • c/src/exec/posix/headers/intr.h

    rc6fa38c0 rc627b2a  
    5454 */
    5555 
    56 EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information;
     56POSIX_EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information;
    5757
    5858/*
     
    6161 */
    6262
    63 EXTERN POSIX_Interrupt_Control _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ];
     63POSIX_EXTERN POSIX_Interrupt_Control
     64               _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ];
    6465 
    6566/*
  • c/src/exec/posix/headers/key.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242 
    43 EXTERN Objects_Information  _POSIX_Keys_Information;
     43POSIX_EXTERN Objects_Information  _POSIX_Keys_Information;
    4444 
    4545/*
  • c/src/exec/posix/headers/mqueue.h

    rc6fa38c0 rc627b2a  
    4646 */
    4747 
    48 EXTERN Objects_Information  _POSIX_Message_queue_Information;
     48POSIX_EXTERN Objects_Information  _POSIX_Message_queue_Information;
    4949 
    5050/*
  • c/src/exec/posix/headers/mutex.h

    rc6fa38c0 rc627b2a  
    2222#endif
    2323
     24#include <rtems/score/coremutex.h>
     25#include <pthread.h>
     26
    2427/*
    2528 *  Data Structure used to manage a POSIX mutex
     
    3740 */
    3841 
    39 EXTERN Objects_Information  _POSIX_Mutex_Information;
     42POSIX_EXTERN Objects_Information  _POSIX_Mutex_Information;
    4043 
    4144/*
  • c/src/exec/posix/headers/pthread.h

    rc6fa38c0 rc627b2a  
    3636 */
    3737 
    38 EXTERN Objects_Information  _POSIX_Threads_Information;
     38POSIX_EXTERN Objects_Information  _POSIX_Threads_Information;
    3939
    4040/*
     
    4242 */
    4343 
    44 EXTERN posix_initialization_tasks_table
     44POSIX_EXTERN posix_initialization_tasks_table
    4545                   *_POSIX_Threads_User_initialization_tasks;
    46 EXTERN unsigned32   _POSIX_Threads_Number_of_initialization_tasks;
     46POSIX_EXTERN unsigned32   _POSIX_Threads_Number_of_initialization_tasks;
    4747
    4848 
  • c/src/exec/posix/headers/semaphore.h

    rc6fa38c0 rc627b2a  
    4242 */
    4343 
    44 EXTERN Objects_Information  _POSIX_Semaphore_Information;
     44POSIX_EXTERN Objects_Information  _POSIX_Semaphore_Information;
    4545 
    4646/*
  • c/src/exec/posix/include/rtems/posix/cond.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242 
    43 EXTERN Objects_Information  _POSIX_Condition_variables_Information;
     43POSIX_EXTERN Objects_Information  _POSIX_Condition_variables_Information;
    4444 
    4545/*
  • c/src/exec/posix/include/rtems/posix/intr.h

    rc6fa38c0 rc627b2a  
    5454 */
    5555 
    56 EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information;
     56POSIX_EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information;
    5757
    5858/*
     
    6161 */
    6262
    63 EXTERN POSIX_Interrupt_Control _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ];
     63POSIX_EXTERN POSIX_Interrupt_Control
     64               _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ];
    6465 
    6566/*
  • c/src/exec/posix/include/rtems/posix/key.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242 
    43 EXTERN Objects_Information  _POSIX_Keys_Information;
     43POSIX_EXTERN Objects_Information  _POSIX_Keys_Information;
    4444 
    4545/*
  • c/src/exec/posix/include/rtems/posix/mqueue.h

    rc6fa38c0 rc627b2a  
    4646 */
    4747 
    48 EXTERN Objects_Information  _POSIX_Message_queue_Information;
     48POSIX_EXTERN Objects_Information  _POSIX_Message_queue_Information;
    4949 
    5050/*
  • c/src/exec/posix/include/rtems/posix/mutex.h

    rc6fa38c0 rc627b2a  
    2222#endif
    2323
     24#include <rtems/score/coremutex.h>
     25#include <pthread.h>
     26
    2427/*
    2528 *  Data Structure used to manage a POSIX mutex
     
    3740 */
    3841 
    39 EXTERN Objects_Information  _POSIX_Mutex_Information;
     42POSIX_EXTERN Objects_Information  _POSIX_Mutex_Information;
    4043 
    4144/*
  • c/src/exec/posix/include/rtems/posix/pthread.h

    rc6fa38c0 rc627b2a  
    3636 */
    3737 
    38 EXTERN Objects_Information  _POSIX_Threads_Information;
     38POSIX_EXTERN Objects_Information  _POSIX_Threads_Information;
    3939
    4040/*
     
    4242 */
    4343 
    44 EXTERN posix_initialization_tasks_table
     44POSIX_EXTERN posix_initialization_tasks_table
    4545                   *_POSIX_Threads_User_initialization_tasks;
    46 EXTERN unsigned32   _POSIX_Threads_Number_of_initialization_tasks;
     46POSIX_EXTERN unsigned32   _POSIX_Threads_Number_of_initialization_tasks;
    4747
    4848 
  • c/src/exec/posix/include/rtems/posix/semaphore.h

    rc6fa38c0 rc627b2a  
    4242 */
    4343 
    44 EXTERN Objects_Information  _POSIX_Semaphore_Information;
     44POSIX_EXTERN Objects_Information  _POSIX_Semaphore_Information;
    4545 
    4646/*
  • c/src/exec/rtems/headers/dpmem.h

    rc6fa38c0 rc627b2a  
    5252 */
    5353
    54 EXTERN Objects_Information  _Dual_ported_memory_Information;
     54RTEMS_EXTERN Objects_Information  _Dual_ported_memory_Information;
    5555
    5656/*
  • c/src/exec/rtems/headers/event.h

    rc6fa38c0 rc627b2a  
    160160 */
    161161
    162 EXTERN volatile Event_Sync_states _Event_Sync_state;
     162RTEMS_EXTERN volatile Event_Sync_states _Event_Sync_state;
    163163
    164164#include <rtems/rtems/eventmp.h>
  • c/src/exec/rtems/headers/message.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN Objects_Information  _Message_queue_Information;
     71RTEMS_EXTERN Objects_Information  _Message_queue_Information;
    7272
    7373/*
  • c/src/exec/rtems/headers/part.h

    rc6fa38c0 rc627b2a  
    5656 */
    5757
    58 EXTERN Objects_Information _Partition_Information;
     58RTEMS_EXTERN Objects_Information _Partition_Information;
    5959
    6060/*
  • c/src/exec/rtems/headers/ratemon.h

    rc6fa38c0 rc627b2a  
    6868}   Rate_monotonic_Control;
    6969
    70 EXTERN Objects_Information _Rate_monotonic_Information;
     70RTEMS_EXTERN Objects_Information _Rate_monotonic_Information;
    7171
    7272/*
  • c/src/exec/rtems/headers/region.h

    rc6fa38c0 rc627b2a  
    6060 */
    6161
    62 EXTERN Objects_Information _Region_Information;
     62RTEMS_EXTERN Objects_Information _Region_Information;
    6363
    6464/*
  • c/src/exec/rtems/headers/sem.h

    rc6fa38c0 rc627b2a  
    5959 */
    6060
    61 EXTERN Objects_Information  _Semaphore_Information;
     61RTEMS_EXTERN Objects_Information  _Semaphore_Information;
    6262
    6363/*
  • c/src/exec/rtems/headers/status.h

    rc6fa38c0 rc627b2a  
    6161extern rtems_status_code _Status_Object_name_errors_to_status[];
    6262
    63 #ifdef INIT
     63#ifdef RTEMS_API_INIT
    6464rtems_status_code _Status_Object_name_errors_to_status[] = {
    6565  RTEMS_SUCCESSFUL,      /* OBJECTS_SUCCESSFUL */
  • c/src/exec/rtems/headers/tasks.h

    rc6fa38c0 rc627b2a  
    165165 */
    166166
    167 EXTERN Objects_Information _RTEMS_tasks_Information;
     167RTEMS_EXTERN Objects_Information _RTEMS_tasks_Information;
    168168
    169169/*
     
    171171 */
    172172
    173 EXTERN rtems_initialization_tasks_table *_RTEMS_tasks_User_initialization_tasks;
    174 EXTERN unsigned32   _RTEMS_tasks_Number_of_initialization_tasks;
     173RTEMS_EXTERN rtems_initialization_tasks_table
     174               *_RTEMS_tasks_User_initialization_tasks;
     175RTEMS_EXTERN unsigned32   _RTEMS_tasks_Number_of_initialization_tasks;
    175176
    176177/*
  • c/src/exec/rtems/headers/timer.h

    rc6fa38c0 rc627b2a  
    6565 */
    6666
    67 EXTERN Objects_Information  _Timer_Information;
     67RTEMS_EXTERN Objects_Information  _Timer_Information;
    6868
    6969/*
  • c/src/exec/rtems/include/rtems/rtems/dpmem.h

    rc6fa38c0 rc627b2a  
    5252 */
    5353
    54 EXTERN Objects_Information  _Dual_ported_memory_Information;
     54RTEMS_EXTERN Objects_Information  _Dual_ported_memory_Information;
    5555
    5656/*
  • c/src/exec/rtems/include/rtems/rtems/event.h

    rc6fa38c0 rc627b2a  
    160160 */
    161161
    162 EXTERN volatile Event_Sync_states _Event_Sync_state;
     162RTEMS_EXTERN volatile Event_Sync_states _Event_Sync_state;
    163163
    164164#include <rtems/rtems/eventmp.h>
  • c/src/exec/rtems/include/rtems/rtems/message.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN Objects_Information  _Message_queue_Information;
     71RTEMS_EXTERN Objects_Information  _Message_queue_Information;
    7272
    7373/*
  • c/src/exec/rtems/include/rtems/rtems/part.h

    rc6fa38c0 rc627b2a  
    5656 */
    5757
    58 EXTERN Objects_Information _Partition_Information;
     58RTEMS_EXTERN Objects_Information _Partition_Information;
    5959
    6060/*
  • c/src/exec/rtems/include/rtems/rtems/ratemon.h

    rc6fa38c0 rc627b2a  
    6868}   Rate_monotonic_Control;
    6969
    70 EXTERN Objects_Information _Rate_monotonic_Information;
     70RTEMS_EXTERN Objects_Information _Rate_monotonic_Information;
    7171
    7272/*
  • c/src/exec/rtems/include/rtems/rtems/region.h

    rc6fa38c0 rc627b2a  
    6060 */
    6161
    62 EXTERN Objects_Information _Region_Information;
     62RTEMS_EXTERN Objects_Information _Region_Information;
    6363
    6464/*
  • c/src/exec/rtems/include/rtems/rtems/sem.h

    rc6fa38c0 rc627b2a  
    5959 */
    6060
    61 EXTERN Objects_Information  _Semaphore_Information;
     61RTEMS_EXTERN Objects_Information  _Semaphore_Information;
    6262
    6363/*
  • c/src/exec/rtems/include/rtems/rtems/status.h

    rc6fa38c0 rc627b2a  
    6161extern rtems_status_code _Status_Object_name_errors_to_status[];
    6262
    63 #ifdef INIT
     63#ifdef RTEMS_API_INIT
    6464rtems_status_code _Status_Object_name_errors_to_status[] = {
    6565  RTEMS_SUCCESSFUL,      /* OBJECTS_SUCCESSFUL */
  • c/src/exec/rtems/include/rtems/rtems/tasks.h

    rc6fa38c0 rc627b2a  
    165165 */
    166166
    167 EXTERN Objects_Information _RTEMS_tasks_Information;
     167RTEMS_EXTERN Objects_Information _RTEMS_tasks_Information;
    168168
    169169/*
     
    171171 */
    172172
    173 EXTERN rtems_initialization_tasks_table *_RTEMS_tasks_User_initialization_tasks;
    174 EXTERN unsigned32   _RTEMS_tasks_Number_of_initialization_tasks;
     173RTEMS_EXTERN rtems_initialization_tasks_table
     174               *_RTEMS_tasks_User_initialization_tasks;
     175RTEMS_EXTERN unsigned32   _RTEMS_tasks_Number_of_initialization_tasks;
    175176
    176177/*
  • c/src/exec/rtems/include/rtems/rtems/timer.h

    rc6fa38c0 rc627b2a  
    6565 */
    6666
    67 EXTERN Objects_Information  _Timer_Information;
     67RTEMS_EXTERN Objects_Information  _Timer_Information;
    6868
    6969/*
  • c/src/exec/sapi/headers/config.h

    rc6fa38c0 rc627b2a  
    8585  rtems_multiprocessing_table      *User_multiprocessing_table;
    8686  rtems_api_configuration_table    *RTEMS_api_configuration;
    87   posix_api_configuration_table    *Posix_api_configuration;
     87  posix_api_configuration_table    *POSIX_api_configuration;
    8888} rtems_configuration_table;
    8989
     
    9393 */
    9494
    95 EXTERN rtems_configuration_table    *_Configuration_Table;
    96 EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
     95SAPI_EXTERN rtems_configuration_table    *_Configuration_Table;
     96SAPI_EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
    9797
    9898#ifdef __cplusplus
  • c/src/exec/sapi/headers/extension.h

    rc6fa38c0 rc627b2a  
    5555 */
    5656
    57 EXTERN Objects_Information  _Extension_Information;
     57SAPI_EXTERN Objects_Information  _Extension_Information;
    5858
    5959/*
  • c/src/exec/sapi/headers/io.h

    rc6fa38c0 rc627b2a  
    8787 */
    8888
    89 EXTERN unsigned32                  _IO_Number_of_drivers;
    90 EXTERN rtems_driver_address_table *_IO_Driver_address_table;
    91 EXTERN unsigned32                  _IO_Number_of_devices;
    92 EXTERN rtems_driver_name_t        *_IO_Driver_name_table;
     89SAPI_EXTERN unsigned32                  _IO_Number_of_drivers;
     90SAPI_EXTERN rtems_driver_address_table *_IO_Driver_address_table;
     91SAPI_EXTERN unsigned32                  _IO_Number_of_devices;
     92SAPI_EXTERN rtems_driver_name_t        *_IO_Driver_name_table;
    9393
    9494/*
  • c/src/exec/sapi/include/rtems/config.h

    rc6fa38c0 rc627b2a  
    8585  rtems_multiprocessing_table      *User_multiprocessing_table;
    8686  rtems_api_configuration_table    *RTEMS_api_configuration;
    87   posix_api_configuration_table    *Posix_api_configuration;
     87  posix_api_configuration_table    *POSIX_api_configuration;
    8888} rtems_configuration_table;
    8989
     
    9393 */
    9494
    95 EXTERN rtems_configuration_table    *_Configuration_Table;
    96 EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
     95SAPI_EXTERN rtems_configuration_table    *_Configuration_Table;
     96SAPI_EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
    9797
    9898#ifdef __cplusplus
  • c/src/exec/sapi/include/rtems/extension.h

    rc6fa38c0 rc627b2a  
    5555 */
    5656
    57 EXTERN Objects_Information  _Extension_Information;
     57SAPI_EXTERN Objects_Information  _Extension_Information;
    5858
    5959/*
  • c/src/exec/sapi/include/rtems/io.h

    rc6fa38c0 rc627b2a  
    8787 */
    8888
    89 EXTERN unsigned32                  _IO_Number_of_drivers;
    90 EXTERN rtems_driver_address_table *_IO_Driver_address_table;
    91 EXTERN unsigned32                  _IO_Number_of_devices;
    92 EXTERN rtems_driver_name_t        *_IO_Driver_name_table;
     89SAPI_EXTERN unsigned32                  _IO_Number_of_drivers;
     90SAPI_EXTERN rtems_driver_address_table *_IO_Driver_address_table;
     91SAPI_EXTERN unsigned32                  _IO_Number_of_devices;
     92SAPI_EXTERN rtems_driver_name_t        *_IO_Driver_name_table;
    9393
    9494/*
  • c/src/exec/sapi/src/exinit.c

    rc6fa38c0 rc627b2a  
    1414
    1515/*
    16  *  INIT is defined so all of the data will be included in this
    17  *  file.
    18  */
    19 
    20 #define INIT
     16 *  SCORE_INIT and SAPI_INIT are defined so all of the super core and
     17 *  super API data will be included in this object file.
     18 */
     19
     20#define SAPI_INIT
     21#define SCORE_INIT
    2122
    2223#include <rtems/system.h>
     
    4546#include <rtems/sptables.h>
    4647
     48
    4749#include <rtems/rtems/rtemsapi.h>
     50#ifdef RTEMS_POSIX_API
     51#include <rtems/posix/posixapi.h>
     52#endif
    4853
    4954/*PAGE
  • c/src/exec/sapi/src/posixapi.c

    rc6fa38c0 rc627b2a  
    1515 */
    1616
     17#ifdef RTEMS_POSIX_API
     18
    1719#include <assert.h>
     20
     21/*
     22 *  POSIX_API_INIT is defined so all of the POSIX API
     23 *  data will be included in this object file.
     24 */
     25
     26#define POSIX_API_INIT
    1827
    1928#include <rtems/system.h>
    2029
    21 #define INIT
    22 
     30#include <sys/types.h>
     31#include <rtems/config.h>
    2332#include <rtems/posix/cond.h>
    24 #include <rtems/posix/condmp.h>
    2533#include <rtems/posix/config.h>
    2634#include <rtems/posix/key.h>
    2735#include <rtems/posix/mutex.h>
    28 #include <rtems/posix/mutexmp.h>
    2936#include <rtems/posix/priority.h>
    3037#include <rtems/posix/pthread.h>
    31 #include <rtems/posix/pthreadmp.h>
    3238#include <rtems/posix/time.h>
    3339
     
    4955  assert( api_configuration );
    5056
    51   _RTEMS_tasks_Manager_initialization(
    52     api_configuration->maximum_tasks
    53 #if 0
    54 ,
     57  _POSIX_Threads_Manager_initialization(
     58    api_configuration->maximum_threads,
    5559    api_configuration->number_of_initialization_tasks,
    5660    api_configuration->User_initialization_tasks_table
    57 #endif
    5861  );
    5962 
     
    6265  );
    6366
    64   void _POSIX_Key_Manager_initialization( api_configuration->maximum_keys );
     67  _POSIX_Key_Manager_initialization( api_configuration->maximum_keys );
    6568
    6669  _POSIX_Mutex_Manager_initialization(
     
    7073}
    7174
     75#endif
    7276/* end of file */
  • c/src/exec/sapi/src/rtemsapi.c

    rc6fa38c0 rc627b2a  
    1515 */
    1616
     17/*
     18 *  RTEMS_API_INIT is defined so all of the RTEMS API
     19 *  data will be included in this object file.
     20 */
     21
     22#define RTEMS_API_INIT
     23
    1724#include <rtems/system.h>
    1825#include <rtems/rtems/status.h>
    1926#include <rtems/rtems/rtemsapi.h>
    20 
    21 #define INIT
    2227
    2328#include <rtems/rtems/intr.h>
  • c/src/exec/score/cpu/hppa1.1/cpu.h

    rc6fa38c0 rc627b2a  
    231231/* variables */
    232232
    233 EXTERN Context_Control_fp  _CPU_Null_fp_context;
    234 EXTERN unsigned32          _CPU_Default_gr27;
    235 EXTERN void               *_CPU_Interrupt_stack_low;
    236 EXTERN void               *_CPU_Interrupt_stack_high;
     233SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context;
     234SCORE_EXTERN unsigned32          _CPU_Default_gr27;
     235SCORE_EXTERN void               *_CPU_Interrupt_stack_low;
     236SCORE_EXTERN void               *_CPU_Interrupt_stack_high;
    237237
    238238#endif          /* ! ASM */
  • c/src/exec/score/cpu/i386/cpu.h

    rc6fa38c0 rc627b2a  
    123123/* variables */
    124124
    125 EXTERN Context_Control_fp  _CPU_Null_fp_context;
    126 EXTERN void               *_CPU_Interrupt_stack_low;
    127 EXTERN void               *_CPU_Interrupt_stack_high;
     125SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context;
     126SCORE_EXTERN void               *_CPU_Interrupt_stack_low;
     127SCORE_EXTERN void               *_CPU_Interrupt_stack_high;
    128128
    129129/* constants */
  • c/src/exec/score/cpu/i960/cpu.h

    rc6fa38c0 rc627b2a  
    158158/* variables */
    159159
    160 EXTERN void               *_CPU_Interrupt_stack_low;
    161 EXTERN void               *_CPU_Interrupt_stack_high;
     160SCORE_EXTERN void               *_CPU_Interrupt_stack_low;
     161SCORE_EXTERN void               *_CPU_Interrupt_stack_high;
    162162
    163163/* constants */
  • c/src/exec/score/cpu/m68k/cpu.h

    rc6fa38c0 rc627b2a  
    149149/* variables */
    150150
    151 EXTERN void               *_CPU_Interrupt_stack_low;
    152 EXTERN void               *_CPU_Interrupt_stack_high;
     151SCORE_EXTERN void               *_CPU_Interrupt_stack_low;
     152SCORE_EXTERN void               *_CPU_Interrupt_stack_high;
    153153      /* points to jsr-exception-table in targets wo/ VBR register */
    154 extern char               _VBR[];
     154extern char                      _VBR[];
    155155
    156156/* constants */
  • c/src/exec/score/cpu/no_cpu/cpu.h

    rc6fa38c0 rc627b2a  
    353353 */
    354354
    355 EXTERN Context_Control_fp  _CPU_Null_fp_context;
     355SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context;
    356356
    357357/*
     
    368368 */
    369369
    370 EXTERN void               *_CPU_Interrupt_stack_low;
    371 EXTERN void               *_CPU_Interrupt_stack_high;
     370SCORE_EXTERN void               *_CPU_Interrupt_stack_low;
     371SCORE_EXTERN void               *_CPU_Interrupt_stack_high;
    372372
    373373/*
     
    381381 */
    382382
    383 EXTERN void           (*_CPU_Thread_dispatch_pointer)();
     383SCORE_EXTERN void           (*_CPU_Thread_dispatch_pointer)();
    384384
    385385/*
  • c/src/exec/score/cpu/powerpc/cpu.h

    rc6fa38c0 rc627b2a  
    474474 */
    475475
    476 EXTERN void               *_CPU_Interrupt_stack_low;
    477 EXTERN void               *_CPU_Interrupt_stack_high;
     476SCORE_EXTERN void               *_CPU_Interrupt_stack_low;
     477SCORE_EXTERN void               *_CPU_Interrupt_stack_high;
    478478
    479479/*
     
    493493 */
    494494
    495 EXTERN struct {
     495SCORE_EXTERN struct {
    496496  unsigned32 *Nest_level;
    497497  unsigned32 *Disable_level;
  • c/src/exec/score/cpu/sparc/cpu.h

    rc6fa38c0 rc627b2a  
    515515 */
    516516
    517 EXTERN Context_Control_fp  _CPU_Null_fp_context CPU_STRUCTURE_ALIGNMENT;
     517SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context CPU_STRUCTURE_ALIGNMENT;
    518518
    519519/*
     
    530530 */
    531531
    532 EXTERN void *_CPU_Interrupt_stack_low;
    533 EXTERN void *_CPU_Interrupt_stack_high;
     532SCORE_EXTERN void *_CPU_Interrupt_stack_low;
     533SCORE_EXTERN void *_CPU_Interrupt_stack_high;
    534534
    535535#if defined(erc32)
     
    539539 */
    540540
    541 EXTERN unsigned32 _ERC32_MEC_Timer_Control_Mirror;
     541SCORE_EXTERN unsigned32 _ERC32_MEC_Timer_Control_Mirror;
    542542
    543543#endif
     
    586586#define SPARC_TRAP_TABLE_ALIGNMENT 4096
    587587 
    588 EXTERN unsigned8 _CPU_Trap_Table_area[ 8192 ]
     588SCORE_EXTERN unsigned8 _CPU_Trap_Table_area[ 8192 ]
    589589           __attribute__ ((aligned (SPARC_TRAP_TABLE_ALIGNMENT)));
    590590 
  • c/src/exec/score/cpu/unix/cpu.h

    rc6fa38c0 rc627b2a  
    492492 */
    493493
    494 EXTERN Context_Control_fp  _CPU_Null_fp_context;
     494SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context;
    495495
    496496/*
     
    507507 */
    508508
    509 EXTERN void               *_CPU_Interrupt_stack_low;
    510 EXTERN void               *_CPU_Interrupt_stack_high;
     509SCORE_EXTERN void               *_CPU_Interrupt_stack_low;
     510SCORE_EXTERN void               *_CPU_Interrupt_stack_high;
    511511
    512512/*
     
    520520 */
    521521
    522 EXTERN void           (*_CPU_Thread_dispatch_pointer)();
     522SCORE_EXTERN void           (*_CPU_Thread_dispatch_pointer)();
    523523
    524524/*
  • c/src/exec/score/headers/apiext.h

    rc6fa38c0 rc627b2a  
    4444 */
    4545 
    46 EXTERN Chain_Control _API_extensions_List;
     46SCORE_EXTERN Chain_Control _API_extensions_List;
    4747
    4848/*
  • c/src/exec/score/headers/bitfield.h

    rc6fa38c0 rc627b2a  
    4141#if ( CPU_USE_GENERIC_BITFIELD_DATA == TRUE )
    4242
    43 #ifndef INIT
    44   extern const unsigned char __log2table[256];
     43#ifndef SCORE_INIT
     44extern const unsigned char __log2table[256];
    4545#else
    4646const unsigned char __log2table[256] = {
  • c/src/exec/score/headers/context.h

    rc6fa38c0 rc627b2a  
    3636 */
    3737
    38 EXTERN boolean _Context_Switch_necessary;
     38SCORE_EXTERN boolean _Context_Switch_necessary;
    3939
    4040/*
  • c/src/exec/score/headers/copyrt.h

    rc6fa38c0 rc627b2a  
    2222#endif
    2323
    24 #ifdef INIT
     24#ifdef SCORE_INIT
    2525
    2626const char _Copyright_Notice[] =
  • c/src/exec/score/headers/debug.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242
    43 EXTERN rtems_debug_control _Debug_Level;
     43SCORE_EXTERN rtems_debug_control _Debug_Level;
    4444
    4545/*
  • c/src/exec/score/headers/interr.h

    rc6fa38c0 rc627b2a  
    7171 */
    7272
    73 EXTERN Internal_errors_Information Internal_errors_What_happened;
     73SCORE_EXTERN Internal_errors_Information Internal_errors_What_happened;
    7474
    7575/*
  • c/src/exec/score/headers/isr.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN boolean    _ISR_Signals_to_thread_executing;
     71SCORE_EXTERN boolean    _ISR_Signals_to_thread_executing;
    7272
    7373/*
     
    7676 */
    7777
    78 EXTERN unsigned32 _ISR_Nest_level;
     78SCORE_EXTERN unsigned32 _ISR_Nest_level;
    7979
    8080/*
     
    8383 */
    8484
    85 EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ];
     85SCORE_EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ];
    8686
    8787/*
  • c/src/exec/score/headers/mpci.h

    rc6fa38c0 rc627b2a  
    128128 */
    129129
    130 EXTERN CORE_semaphore_Control _MPCI_Semaphore;
     130SCORE_EXTERN CORE_semaphore_Control _MPCI_Semaphore;
    131131/*
    132132 *  The following thread queue is used to maintain a list of tasks
     
    134134 */
    135135
    136 EXTERN Thread_queue_Control _MPCI_Remote_blocked_threads;
     136SCORE_EXTERN Thread_queue_Control _MPCI_Remote_blocked_threads;
    137137
    138138/*
     
    141141 */
    142142 
    143 EXTERN MPCI_Control *_MPCI_table;
     143SCORE_EXTERN MPCI_Control *_MPCI_table;
    144144
    145145/*
     
    147147 */
    148148 
    149 EXTERN Thread_Control *_MPCI_Receive_server_tcb;
     149SCORE_EXTERN Thread_Control *_MPCI_Receive_server_tcb;
    150150
    151151/*
     
    154154 */
    155155
    156 EXTERN MPCI_Packet_processor _MPCI_Packet_processors[MP_PACKET_CLASSES_LAST+1];
     156SCORE_EXTERN MPCI_Packet_processor
     157               _MPCI_Packet_processors[MP_PACKET_CLASSES_LAST+1];
    157158
    158159/*
  • c/src/exec/score/headers/object.h

    rc6fa38c0 rc627b2a  
    152152 */
    153153
    154 EXTERN unsigned32  _Objects_Local_node;
    155 EXTERN unsigned32  _Objects_Maximum_nodes;
     154SCORE_EXTERN unsigned32  _Objects_Local_node;
     155SCORE_EXTERN unsigned32  _Objects_Maximum_nodes;
    156156
    157157/*
     
    161161 */
    162162
    163 EXTERN Objects_Information
     163SCORE_EXTERN Objects_Information
    164164    *_Objects_Information_table[OBJECTS_CLASSES_LAST + 1];
    165165
  • c/src/exec/score/headers/objectmp.h

    rc6fa38c0 rc627b2a  
    138138 */
    139139
    140 EXTERN unsigned32     _Objects_MP_Maximum_global_objects;
    141 EXTERN Chain_Control  _Objects_MP_Inactive_global_objects;
     140SCORE_EXTERN unsigned32     _Objects_MP_Maximum_global_objects;
     141SCORE_EXTERN Chain_Control  _Objects_MP_Inactive_global_objects;
    142142
    143143#ifndef __RTEMS_APPLICATION__
  • c/src/exec/score/headers/priority.h

    rc6fa38c0 rc627b2a  
    5959 */
    6060
    61 EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map;
    62 EXTERN Priority_Bit_map_control _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
     61SCORE_EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map;
     62SCORE_EXTERN Priority_Bit_map_control
     63               _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
    6364
    6465/*
  • c/src/exec/score/headers/sysstate.h

    rc6fa38c0 rc627b2a  
    4545 */
    4646 
    47 EXTERN boolean _System_state_Is_multiprocessing;
     47SCORE_EXTERN boolean _System_state_Is_multiprocessing;
    4848
    4949/*
     
    5151 */
    5252
    53 EXTERN System_state_Codes _System_state_Current;
     53SCORE_EXTERN System_state_Codes _System_state_Current;
    5454
    5555/*
  • c/src/exec/score/headers/system.h

    rc6fa38c0 rc627b2a  
    3737/*
    3838 *  The following insures that all data is declared in the space
    39  *  of the Initialization Manager.  It is referenced as "external"
    40  *  in every other file.
     39 *  of the initialization routine for either the Initialization Manager
     40 *  or the initialization file for the appropriate API.  It is
     41 *  referenced as "external" in every other file.
    4142 */
    4243
    43 #ifdef INIT
    44 #undef EXTERN
    45 #define EXTERN
     44#ifdef SCORE_INIT
     45#undef  SCORE_EXTERN
     46#define SCORE_EXTERN
    4647#else
    47 #undef EXTERN
    48 #define EXTERN  extern
     48#undef  SCORE_EXTERN
     49#define SCORE_EXTERN  extern
     50#endif
     51
     52#ifdef SAPI_INIT
     53#undef  SAPI_EXTERN
     54#define SAPI_EXTERN
     55#else
     56#undef  SAPI_EXTERN
     57#define SAPI_EXTERN  extern
     58#endif
     59
     60#ifdef RTEMS_API_INIT
     61#undef  RTEMS_EXTERN
     62#define RTEMS_EXTERN
     63#else
     64#undef  RTEMS_EXTERN
     65#define RTEMS_EXTERN  extern
     66#endif
     67
     68#ifdef POSIX_API_INIT
     69#undef  POSIX_EXTERN
     70#define POSIX_EXTERN
     71#else
     72#undef  POSIX_EXTERN
     73#define POSIX_EXTERN  extern
    4974#endif
    5075
     
    119144 */
    120145
    121 EXTERN rtems_cpu_table _CPU_Table;               /* CPU dependent info */
     146SCORE_EXTERN rtems_cpu_table _CPU_Table;               /* CPU dependent info */
    122147
    123148/*
  • c/src/exec/score/headers/thread.h

    rc6fa38c0 rc627b2a  
    174174 */
    175175 
    176 EXTERN Objects_Information _Thread_Internal_information;
     176SCORE_EXTERN Objects_Information _Thread_Internal_information;
    177177 
    178178/*
     
    181181 */
    182182 
    183 EXTERN Thread_Control *_Thread_Idle;
     183SCORE_EXTERN Thread_Control *_Thread_Idle;
    184184
    185185/*
     
    191191 */
    192192 
    193 EXTERN Context_Control _Thread_BSP_context;
     193SCORE_EXTERN Context_Control _Thread_BSP_context;
    194194 
    195195/*
     
    199199 */
    200200
    201 EXTERN unsigned32 _Thread_Dispatch_disable_level;
     201SCORE_EXTERN unsigned32 _Thread_Dispatch_disable_level;
    202202
    203203/*
     
    207207 */
    208208
    209 EXTERN unsigned32 _Thread_Maximum_extensions;
     209SCORE_EXTERN unsigned32 _Thread_Maximum_extensions;
    210210
    211211/*
     
    213213 */
    214214
    215 EXTERN unsigned32 _Thread_Ticks_remaining_in_timeslice;
    216 EXTERN unsigned32 _Thread_Ticks_per_timeslice;
     215SCORE_EXTERN unsigned32 _Thread_Ticks_remaining_in_timeslice;
     216SCORE_EXTERN unsigned32 _Thread_Ticks_per_timeslice;
    217217
    218218/*
     
    221221 */
    222222
    223 EXTERN Chain_Control *_Thread_Ready_chain;
     223SCORE_EXTERN Chain_Control *_Thread_Ready_chain;
    224224
    225225/*
     
    228228 */
    229229
    230 EXTERN Thread_Control *_Thread_Executing;
     230SCORE_EXTERN Thread_Control *_Thread_Executing;
    231231
    232232/*
     
    237237 */
    238238
    239 EXTERN Thread_Control *_Thread_Heir;
     239SCORE_EXTERN Thread_Control *_Thread_Heir;
    240240
    241241/*
     
    244244 */
    245245
    246 EXTERN Thread_Control *_Thread_Allocated_fp;
     246SCORE_EXTERN Thread_Control *_Thread_Allocated_fp;
    247247
    248248/*
  • c/src/exec/score/headers/threadmp.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN Thread_Control *_Thread_MP_Receive;
     71SCORE_EXTERN Thread_Control *_Thread_MP_Receive;
    7272
    7373/*
     
    7575 */
    7676
    77 EXTERN Chain_Control _Thread_MP_Active_proxies;
    78 EXTERN Chain_Control _Thread_MP_Inactive_proxies;
     77SCORE_EXTERN Chain_Control _Thread_MP_Active_proxies;
     78SCORE_EXTERN Chain_Control _Thread_MP_Inactive_proxies;
    7979
    8080#ifndef __RTEMS_APPLICATION__
  • c/src/exec/score/headers/threadq.h

    rc6fa38c0 rc627b2a  
    5353             );
    5454
    55 EXTERN Thread_queue_Extract_callout 
     55SCORE_EXTERN Thread_queue_Extract_callout 
    5656  _Thread_queue_Extract_table[ OBJECTS_CLASSES_LAST + 1 ];
    5757
  • c/src/exec/score/headers/tod.h

    rc6fa38c0 rc627b2a  
    7070 */
    7171
    72 EXTERN TOD_Control _TOD_Current;
     72SCORE_EXTERN TOD_Control _TOD_Current;
    7373
    7474/*
     
    7777 */
    7878
    79 EXTERN Watchdog_Interval _TOD_Seconds_since_epoch;
     79SCORE_EXTERN Watchdog_Interval _TOD_Seconds_since_epoch;
    8080
    8181/*
     
    8484 */
    8585
    86 EXTERN Watchdog_Interval _TOD_Ticks_since_boot;
     86SCORE_EXTERN Watchdog_Interval _TOD_Ticks_since_boot;
    8787
    8888/*
     
    9090 */
    9191
    92 EXTERN unsigned32 _TOD_Microseconds_per_tick;
     92SCORE_EXTERN unsigned32 _TOD_Microseconds_per_tick;
    9393
    9494/*
     
    103103 */
    104104
    105 EXTERN unsigned32 _TOD_Ticks_per_second;
     105SCORE_EXTERN unsigned32 _TOD_Ticks_per_second;
    106106
    107107/*
     
    110110 */
    111111
    112 EXTERN Watchdog_Control _TOD_Seconds_watchdog;
    113 
    114 #ifdef INIT
     112SCORE_EXTERN Watchdog_Control _TOD_Seconds_watchdog;
     113
     114#ifdef SCORE_INIT
    115115
    116116/*
  • c/src/exec/score/headers/userext.h

    rc6fa38c0 rc627b2a  
    101101 */
    102102
    103 EXTERN User_extensions_Control _User_extensions_Initial;
     103SCORE_EXTERN User_extensions_Control _User_extensions_Initial;
    104104
    105105/*
     
    107107 */
    108108
    109 EXTERN Chain_Control _User_extensions_List;
     109SCORE_EXTERN Chain_Control _User_extensions_List;
    110110
    111111/*
  • c/src/exec/score/headers/watchdog.h

    rc6fa38c0 rc627b2a  
    9393 */
    9494
    95 EXTERN volatile unsigned32  _Watchdog_Sync_level;
    96 EXTERN volatile unsigned32  _Watchdog_Sync_count;
     95SCORE_EXTERN volatile unsigned32  _Watchdog_Sync_level;
     96SCORE_EXTERN volatile unsigned32  _Watchdog_Sync_count;
    9797
    9898/*
     
    101101 */
    102102
    103 EXTERN Chain_Control _Watchdog_Ticks_chain;
    104 EXTERN Chain_Control _Watchdog_Seconds_chain;
     103SCORE_EXTERN Chain_Control _Watchdog_Ticks_chain;
     104SCORE_EXTERN Chain_Control _Watchdog_Seconds_chain;
    105105
    106106/*
  • c/src/exec/score/headers/wkspace.h

    rc6fa38c0 rc627b2a  
    3131 */
    3232
    33 EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
     33SCORE_EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
    3434
    3535/*
  • c/src/exec/score/include/rtems/debug.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242
    43 EXTERN rtems_debug_control _Debug_Level;
     43SCORE_EXTERN rtems_debug_control _Debug_Level;
    4444
    4545/*
  • c/src/exec/score/include/rtems/score/apiext.h

    rc6fa38c0 rc627b2a  
    4444 */
    4545 
    46 EXTERN Chain_Control _API_extensions_List;
     46SCORE_EXTERN Chain_Control _API_extensions_List;
    4747
    4848/*
  • c/src/exec/score/include/rtems/score/bitfield.h

    rc6fa38c0 rc627b2a  
    4141#if ( CPU_USE_GENERIC_BITFIELD_DATA == TRUE )
    4242
    43 #ifndef INIT
    44   extern const unsigned char __log2table[256];
     43#ifndef SCORE_INIT
     44extern const unsigned char __log2table[256];
    4545#else
    4646const unsigned char __log2table[256] = {
  • c/src/exec/score/include/rtems/score/context.h

    rc6fa38c0 rc627b2a  
    3636 */
    3737
    38 EXTERN boolean _Context_Switch_necessary;
     38SCORE_EXTERN boolean _Context_Switch_necessary;
    3939
    4040/*
  • c/src/exec/score/include/rtems/score/copyrt.h

    rc6fa38c0 rc627b2a  
    2222#endif
    2323
    24 #ifdef INIT
     24#ifdef SCORE_INIT
    2525
    2626const char _Copyright_Notice[] =
  • c/src/exec/score/include/rtems/score/interr.h

    rc6fa38c0 rc627b2a  
    7171 */
    7272
    73 EXTERN Internal_errors_Information Internal_errors_What_happened;
     73SCORE_EXTERN Internal_errors_Information Internal_errors_What_happened;
    7474
    7575/*
  • c/src/exec/score/include/rtems/score/isr.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN boolean    _ISR_Signals_to_thread_executing;
     71SCORE_EXTERN boolean    _ISR_Signals_to_thread_executing;
    7272
    7373/*
     
    7676 */
    7777
    78 EXTERN unsigned32 _ISR_Nest_level;
     78SCORE_EXTERN unsigned32 _ISR_Nest_level;
    7979
    8080/*
     
    8383 */
    8484
    85 EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ];
     85SCORE_EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ];
    8686
    8787/*
  • c/src/exec/score/include/rtems/score/mpci.h

    rc6fa38c0 rc627b2a  
    128128 */
    129129
    130 EXTERN CORE_semaphore_Control _MPCI_Semaphore;
     130SCORE_EXTERN CORE_semaphore_Control _MPCI_Semaphore;
    131131/*
    132132 *  The following thread queue is used to maintain a list of tasks
     
    134134 */
    135135
    136 EXTERN Thread_queue_Control _MPCI_Remote_blocked_threads;
     136SCORE_EXTERN Thread_queue_Control _MPCI_Remote_blocked_threads;
    137137
    138138/*
     
    141141 */
    142142 
    143 EXTERN MPCI_Control *_MPCI_table;
     143SCORE_EXTERN MPCI_Control *_MPCI_table;
    144144
    145145/*
     
    147147 */
    148148 
    149 EXTERN Thread_Control *_MPCI_Receive_server_tcb;
     149SCORE_EXTERN Thread_Control *_MPCI_Receive_server_tcb;
    150150
    151151/*
     
    154154 */
    155155
    156 EXTERN MPCI_Packet_processor _MPCI_Packet_processors[MP_PACKET_CLASSES_LAST+1];
     156SCORE_EXTERN MPCI_Packet_processor
     157               _MPCI_Packet_processors[MP_PACKET_CLASSES_LAST+1];
    157158
    158159/*
  • c/src/exec/score/include/rtems/score/object.h

    rc6fa38c0 rc627b2a  
    152152 */
    153153
    154 EXTERN unsigned32  _Objects_Local_node;
    155 EXTERN unsigned32  _Objects_Maximum_nodes;
     154SCORE_EXTERN unsigned32  _Objects_Local_node;
     155SCORE_EXTERN unsigned32  _Objects_Maximum_nodes;
    156156
    157157/*
     
    161161 */
    162162
    163 EXTERN Objects_Information
     163SCORE_EXTERN Objects_Information
    164164    *_Objects_Information_table[OBJECTS_CLASSES_LAST + 1];
    165165
  • c/src/exec/score/include/rtems/score/objectmp.h

    rc6fa38c0 rc627b2a  
    138138 */
    139139
    140 EXTERN unsigned32     _Objects_MP_Maximum_global_objects;
    141 EXTERN Chain_Control  _Objects_MP_Inactive_global_objects;
     140SCORE_EXTERN unsigned32     _Objects_MP_Maximum_global_objects;
     141SCORE_EXTERN Chain_Control  _Objects_MP_Inactive_global_objects;
    142142
    143143#ifndef __RTEMS_APPLICATION__
  • c/src/exec/score/include/rtems/score/priority.h

    rc6fa38c0 rc627b2a  
    5959 */
    6060
    61 EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map;
    62 EXTERN Priority_Bit_map_control _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
     61SCORE_EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map;
     62SCORE_EXTERN Priority_Bit_map_control
     63               _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
    6364
    6465/*
  • c/src/exec/score/include/rtems/score/sysstate.h

    rc6fa38c0 rc627b2a  
    4545 */
    4646 
    47 EXTERN boolean _System_state_Is_multiprocessing;
     47SCORE_EXTERN boolean _System_state_Is_multiprocessing;
    4848
    4949/*
     
    5151 */
    5252
    53 EXTERN System_state_Codes _System_state_Current;
     53SCORE_EXTERN System_state_Codes _System_state_Current;
    5454
    5555/*
  • c/src/exec/score/include/rtems/score/thread.h

    rc6fa38c0 rc627b2a  
    174174 */
    175175 
    176 EXTERN Objects_Information _Thread_Internal_information;
     176SCORE_EXTERN Objects_Information _Thread_Internal_information;
    177177 
    178178/*
     
    181181 */
    182182 
    183 EXTERN Thread_Control *_Thread_Idle;
     183SCORE_EXTERN Thread_Control *_Thread_Idle;
    184184
    185185/*
     
    191191 */
    192192 
    193 EXTERN Context_Control _Thread_BSP_context;
     193SCORE_EXTERN Context_Control _Thread_BSP_context;
    194194 
    195195/*
     
    199199 */
    200200
    201 EXTERN unsigned32 _Thread_Dispatch_disable_level;
     201SCORE_EXTERN unsigned32 _Thread_Dispatch_disable_level;
    202202
    203203/*
     
    207207 */
    208208
    209 EXTERN unsigned32 _Thread_Maximum_extensions;
     209SCORE_EXTERN unsigned32 _Thread_Maximum_extensions;
    210210
    211211/*
     
    213213 */
    214214
    215 EXTERN unsigned32 _Thread_Ticks_remaining_in_timeslice;
    216 EXTERN unsigned32 _Thread_Ticks_per_timeslice;
     215SCORE_EXTERN unsigned32 _Thread_Ticks_remaining_in_timeslice;
     216SCORE_EXTERN unsigned32 _Thread_Ticks_per_timeslice;
    217217
    218218/*
     
    221221 */
    222222
    223 EXTERN Chain_Control *_Thread_Ready_chain;
     223SCORE_EXTERN Chain_Control *_Thread_Ready_chain;
    224224
    225225/*
     
    228228 */
    229229
    230 EXTERN Thread_Control *_Thread_Executing;
     230SCORE_EXTERN Thread_Control *_Thread_Executing;
    231231
    232232/*
     
    237237 */
    238238
    239 EXTERN Thread_Control *_Thread_Heir;
     239SCORE_EXTERN Thread_Control *_Thread_Heir;
    240240
    241241/*
     
    244244 */
    245245
    246 EXTERN Thread_Control *_Thread_Allocated_fp;
     246SCORE_EXTERN Thread_Control *_Thread_Allocated_fp;
    247247
    248248/*
  • c/src/exec/score/include/rtems/score/threadmp.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN Thread_Control *_Thread_MP_Receive;
     71SCORE_EXTERN Thread_Control *_Thread_MP_Receive;
    7272
    7373/*
     
    7575 */
    7676
    77 EXTERN Chain_Control _Thread_MP_Active_proxies;
    78 EXTERN Chain_Control _Thread_MP_Inactive_proxies;
     77SCORE_EXTERN Chain_Control _Thread_MP_Active_proxies;
     78SCORE_EXTERN Chain_Control _Thread_MP_Inactive_proxies;
    7979
    8080#ifndef __RTEMS_APPLICATION__
  • c/src/exec/score/include/rtems/score/threadq.h

    rc6fa38c0 rc627b2a  
    5353             );
    5454
    55 EXTERN Thread_queue_Extract_callout 
     55SCORE_EXTERN Thread_queue_Extract_callout 
    5656  _Thread_queue_Extract_table[ OBJECTS_CLASSES_LAST + 1 ];
    5757
  • c/src/exec/score/include/rtems/score/tod.h

    rc6fa38c0 rc627b2a  
    7070 */
    7171
    72 EXTERN TOD_Control _TOD_Current;
     72SCORE_EXTERN TOD_Control _TOD_Current;
    7373
    7474/*
     
    7777 */
    7878
    79 EXTERN Watchdog_Interval _TOD_Seconds_since_epoch;
     79SCORE_EXTERN Watchdog_Interval _TOD_Seconds_since_epoch;
    8080
    8181/*
     
    8484 */
    8585
    86 EXTERN Watchdog_Interval _TOD_Ticks_since_boot;
     86SCORE_EXTERN Watchdog_Interval _TOD_Ticks_since_boot;
    8787
    8888/*
     
    9090 */
    9191
    92 EXTERN unsigned32 _TOD_Microseconds_per_tick;
     92SCORE_EXTERN unsigned32 _TOD_Microseconds_per_tick;
    9393
    9494/*
     
    103103 */
    104104
    105 EXTERN unsigned32 _TOD_Ticks_per_second;
     105SCORE_EXTERN unsigned32 _TOD_Ticks_per_second;
    106106
    107107/*
     
    110110 */
    111111
    112 EXTERN Watchdog_Control _TOD_Seconds_watchdog;
    113 
    114 #ifdef INIT
     112SCORE_EXTERN Watchdog_Control _TOD_Seconds_watchdog;
     113
     114#ifdef SCORE_INIT
    115115
    116116/*
  • c/src/exec/score/include/rtems/score/userext.h

    rc6fa38c0 rc627b2a  
    101101 */
    102102
    103 EXTERN User_extensions_Control _User_extensions_Initial;
     103SCORE_EXTERN User_extensions_Control _User_extensions_Initial;
    104104
    105105/*
     
    107107 */
    108108
    109 EXTERN Chain_Control _User_extensions_List;
     109SCORE_EXTERN Chain_Control _User_extensions_List;
    110110
    111111/*
  • c/src/exec/score/include/rtems/score/watchdog.h

    rc6fa38c0 rc627b2a  
    9393 */
    9494
    95 EXTERN volatile unsigned32  _Watchdog_Sync_level;
    96 EXTERN volatile unsigned32  _Watchdog_Sync_count;
     95SCORE_EXTERN volatile unsigned32  _Watchdog_Sync_level;
     96SCORE_EXTERN volatile unsigned32  _Watchdog_Sync_count;
    9797
    9898/*
     
    101101 */
    102102
    103 EXTERN Chain_Control _Watchdog_Ticks_chain;
    104 EXTERN Chain_Control _Watchdog_Seconds_chain;
     103SCORE_EXTERN Chain_Control _Watchdog_Ticks_chain;
     104SCORE_EXTERN Chain_Control _Watchdog_Seconds_chain;
    105105
    106106/*
  • c/src/exec/score/include/rtems/score/wkspace.h

    rc6fa38c0 rc627b2a  
    3131 */
    3232
    33 EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
     33SCORE_EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
    3434
    3535/*
  • c/src/exec/score/include/rtems/system.h

    rc6fa38c0 rc627b2a  
    3737/*
    3838 *  The following insures that all data is declared in the space
    39  *  of the Initialization Manager.  It is referenced as "external"
    40  *  in every other file.
     39 *  of the initialization routine for either the Initialization Manager
     40 *  or the initialization file for the appropriate API.  It is
     41 *  referenced as "external" in every other file.
    4142 */
    4243
    43 #ifdef INIT
    44 #undef EXTERN
    45 #define EXTERN
     44#ifdef SCORE_INIT
     45#undef  SCORE_EXTERN
     46#define SCORE_EXTERN
    4647#else
    47 #undef EXTERN
    48 #define EXTERN  extern
     48#undef  SCORE_EXTERN
     49#define SCORE_EXTERN  extern
     50#endif
     51
     52#ifdef SAPI_INIT
     53#undef  SAPI_EXTERN
     54#define SAPI_EXTERN
     55#else
     56#undef  SAPI_EXTERN
     57#define SAPI_EXTERN  extern
     58#endif
     59
     60#ifdef RTEMS_API_INIT
     61#undef  RTEMS_EXTERN
     62#define RTEMS_EXTERN
     63#else
     64#undef  RTEMS_EXTERN
     65#define RTEMS_EXTERN  extern
     66#endif
     67
     68#ifdef POSIX_API_INIT
     69#undef  POSIX_EXTERN
     70#define POSIX_EXTERN
     71#else
     72#undef  POSIX_EXTERN
     73#define POSIX_EXTERN  extern
    4974#endif
    5075
     
    119144 */
    120145
    121 EXTERN rtems_cpu_table _CPU_Table;               /* CPU dependent info */
     146SCORE_EXTERN rtems_cpu_table _CPU_Table;               /* CPU dependent info */
    122147
    123148/*
  • cpukit/posix/include/rtems/posix/cond.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242 
    43 EXTERN Objects_Information  _POSIX_Condition_variables_Information;
     43POSIX_EXTERN Objects_Information  _POSIX_Condition_variables_Information;
    4444 
    4545/*
  • cpukit/posix/include/rtems/posix/intr.h

    rc6fa38c0 rc627b2a  
    5454 */
    5555 
    56 EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information;
     56POSIX_EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information;
    5757
    5858/*
     
    6161 */
    6262
    63 EXTERN POSIX_Interrupt_Control _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ];
     63POSIX_EXTERN POSIX_Interrupt_Control
     64               _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ];
    6465 
    6566/*
  • cpukit/posix/include/rtems/posix/key.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242 
    43 EXTERN Objects_Information  _POSIX_Keys_Information;
     43POSIX_EXTERN Objects_Information  _POSIX_Keys_Information;
    4444 
    4545/*
  • cpukit/posix/include/rtems/posix/mqueue.h

    rc6fa38c0 rc627b2a  
    4646 */
    4747 
    48 EXTERN Objects_Information  _POSIX_Message_queue_Information;
     48POSIX_EXTERN Objects_Information  _POSIX_Message_queue_Information;
    4949 
    5050/*
  • cpukit/posix/include/rtems/posix/mutex.h

    rc6fa38c0 rc627b2a  
    2222#endif
    2323
     24#include <rtems/score/coremutex.h>
     25#include <pthread.h>
     26
    2427/*
    2528 *  Data Structure used to manage a POSIX mutex
     
    3740 */
    3841 
    39 EXTERN Objects_Information  _POSIX_Mutex_Information;
     42POSIX_EXTERN Objects_Information  _POSIX_Mutex_Information;
    4043 
    4144/*
  • cpukit/posix/include/rtems/posix/pthread.h

    rc6fa38c0 rc627b2a  
    3636 */
    3737 
    38 EXTERN Objects_Information  _POSIX_Threads_Information;
     38POSIX_EXTERN Objects_Information  _POSIX_Threads_Information;
    3939
    4040/*
     
    4242 */
    4343 
    44 EXTERN posix_initialization_tasks_table
     44POSIX_EXTERN posix_initialization_tasks_table
    4545                   *_POSIX_Threads_User_initialization_tasks;
    46 EXTERN unsigned32   _POSIX_Threads_Number_of_initialization_tasks;
     46POSIX_EXTERN unsigned32   _POSIX_Threads_Number_of_initialization_tasks;
    4747
    4848 
  • cpukit/posix/include/rtems/posix/semaphore.h

    rc6fa38c0 rc627b2a  
    4242 */
    4343 
    44 EXTERN Objects_Information  _POSIX_Semaphore_Information;
     44POSIX_EXTERN Objects_Information  _POSIX_Semaphore_Information;
    4545 
    4646/*
  • cpukit/rtems/include/rtems/rtems/dpmem.h

    rc6fa38c0 rc627b2a  
    5252 */
    5353
    54 EXTERN Objects_Information  _Dual_ported_memory_Information;
     54RTEMS_EXTERN Objects_Information  _Dual_ported_memory_Information;
    5555
    5656/*
  • cpukit/rtems/include/rtems/rtems/event.h

    rc6fa38c0 rc627b2a  
    160160 */
    161161
    162 EXTERN volatile Event_Sync_states _Event_Sync_state;
     162RTEMS_EXTERN volatile Event_Sync_states _Event_Sync_state;
    163163
    164164#include <rtems/rtems/eventmp.h>
  • cpukit/rtems/include/rtems/rtems/message.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN Objects_Information  _Message_queue_Information;
     71RTEMS_EXTERN Objects_Information  _Message_queue_Information;
    7272
    7373/*
  • cpukit/rtems/include/rtems/rtems/part.h

    rc6fa38c0 rc627b2a  
    5656 */
    5757
    58 EXTERN Objects_Information _Partition_Information;
     58RTEMS_EXTERN Objects_Information _Partition_Information;
    5959
    6060/*
  • cpukit/rtems/include/rtems/rtems/ratemon.h

    rc6fa38c0 rc627b2a  
    6868}   Rate_monotonic_Control;
    6969
    70 EXTERN Objects_Information _Rate_monotonic_Information;
     70RTEMS_EXTERN Objects_Information _Rate_monotonic_Information;
    7171
    7272/*
  • cpukit/rtems/include/rtems/rtems/region.h

    rc6fa38c0 rc627b2a  
    6060 */
    6161
    62 EXTERN Objects_Information _Region_Information;
     62RTEMS_EXTERN Objects_Information _Region_Information;
    6363
    6464/*
  • cpukit/rtems/include/rtems/rtems/sem.h

    rc6fa38c0 rc627b2a  
    5959 */
    6060
    61 EXTERN Objects_Information  _Semaphore_Information;
     61RTEMS_EXTERN Objects_Information  _Semaphore_Information;
    6262
    6363/*
  • cpukit/rtems/include/rtems/rtems/status.h

    rc6fa38c0 rc627b2a  
    6161extern rtems_status_code _Status_Object_name_errors_to_status[];
    6262
    63 #ifdef INIT
     63#ifdef RTEMS_API_INIT
    6464rtems_status_code _Status_Object_name_errors_to_status[] = {
    6565  RTEMS_SUCCESSFUL,      /* OBJECTS_SUCCESSFUL */
  • cpukit/rtems/include/rtems/rtems/tasks.h

    rc6fa38c0 rc627b2a  
    165165 */
    166166
    167 EXTERN Objects_Information _RTEMS_tasks_Information;
     167RTEMS_EXTERN Objects_Information _RTEMS_tasks_Information;
    168168
    169169/*
     
    171171 */
    172172
    173 EXTERN rtems_initialization_tasks_table *_RTEMS_tasks_User_initialization_tasks;
    174 EXTERN unsigned32   _RTEMS_tasks_Number_of_initialization_tasks;
     173RTEMS_EXTERN rtems_initialization_tasks_table
     174               *_RTEMS_tasks_User_initialization_tasks;
     175RTEMS_EXTERN unsigned32   _RTEMS_tasks_Number_of_initialization_tasks;
    175176
    176177/*
  • cpukit/rtems/include/rtems/rtems/timer.h

    rc6fa38c0 rc627b2a  
    6565 */
    6666
    67 EXTERN Objects_Information  _Timer_Information;
     67RTEMS_EXTERN Objects_Information  _Timer_Information;
    6868
    6969/*
  • cpukit/sapi/include/rtems/config.h

    rc6fa38c0 rc627b2a  
    8585  rtems_multiprocessing_table      *User_multiprocessing_table;
    8686  rtems_api_configuration_table    *RTEMS_api_configuration;
    87   posix_api_configuration_table    *Posix_api_configuration;
     87  posix_api_configuration_table    *POSIX_api_configuration;
    8888} rtems_configuration_table;
    8989
     
    9393 */
    9494
    95 EXTERN rtems_configuration_table    *_Configuration_Table;
    96 EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
     95SAPI_EXTERN rtems_configuration_table    *_Configuration_Table;
     96SAPI_EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
    9797
    9898#ifdef __cplusplus
  • cpukit/sapi/include/rtems/extension.h

    rc6fa38c0 rc627b2a  
    5555 */
    5656
    57 EXTERN Objects_Information  _Extension_Information;
     57SAPI_EXTERN Objects_Information  _Extension_Information;
    5858
    5959/*
  • cpukit/sapi/include/rtems/io.h

    rc6fa38c0 rc627b2a  
    8787 */
    8888
    89 EXTERN unsigned32                  _IO_Number_of_drivers;
    90 EXTERN rtems_driver_address_table *_IO_Driver_address_table;
    91 EXTERN unsigned32                  _IO_Number_of_devices;
    92 EXTERN rtems_driver_name_t        *_IO_Driver_name_table;
     89SAPI_EXTERN unsigned32                  _IO_Number_of_drivers;
     90SAPI_EXTERN rtems_driver_address_table *_IO_Driver_address_table;
     91SAPI_EXTERN unsigned32                  _IO_Number_of_devices;
     92SAPI_EXTERN rtems_driver_name_t        *_IO_Driver_name_table;
    9393
    9494/*
  • cpukit/sapi/src/exinit.c

    rc6fa38c0 rc627b2a  
    1414
    1515/*
    16  *  INIT is defined so all of the data will be included in this
    17  *  file.
    18  */
    19 
    20 #define INIT
     16 *  SCORE_INIT and SAPI_INIT are defined so all of the super core and
     17 *  super API data will be included in this object file.
     18 */
     19
     20#define SAPI_INIT
     21#define SCORE_INIT
    2122
    2223#include <rtems/system.h>
     
    4546#include <rtems/sptables.h>
    4647
     48
    4749#include <rtems/rtems/rtemsapi.h>
     50#ifdef RTEMS_POSIX_API
     51#include <rtems/posix/posixapi.h>
     52#endif
    4853
    4954/*PAGE
  • cpukit/sapi/src/posixapi.c

    rc6fa38c0 rc627b2a  
    1515 */
    1616
     17#ifdef RTEMS_POSIX_API
     18
    1719#include <assert.h>
     20
     21/*
     22 *  POSIX_API_INIT is defined so all of the POSIX API
     23 *  data will be included in this object file.
     24 */
     25
     26#define POSIX_API_INIT
    1827
    1928#include <rtems/system.h>
    2029
    21 #define INIT
    22 
     30#include <sys/types.h>
     31#include <rtems/config.h>
    2332#include <rtems/posix/cond.h>
    24 #include <rtems/posix/condmp.h>
    2533#include <rtems/posix/config.h>
    2634#include <rtems/posix/key.h>
    2735#include <rtems/posix/mutex.h>
    28 #include <rtems/posix/mutexmp.h>
    2936#include <rtems/posix/priority.h>
    3037#include <rtems/posix/pthread.h>
    31 #include <rtems/posix/pthreadmp.h>
    3238#include <rtems/posix/time.h>
    3339
     
    4955  assert( api_configuration );
    5056
    51   _RTEMS_tasks_Manager_initialization(
    52     api_configuration->maximum_tasks
    53 #if 0
    54 ,
     57  _POSIX_Threads_Manager_initialization(
     58    api_configuration->maximum_threads,
    5559    api_configuration->number_of_initialization_tasks,
    5660    api_configuration->User_initialization_tasks_table
    57 #endif
    5861  );
    5962 
     
    6265  );
    6366
    64   void _POSIX_Key_Manager_initialization( api_configuration->maximum_keys );
     67  _POSIX_Key_Manager_initialization( api_configuration->maximum_keys );
    6568
    6669  _POSIX_Mutex_Manager_initialization(
     
    7073}
    7174
     75#endif
    7276/* end of file */
  • cpukit/sapi/src/rtemsapi.c

    rc6fa38c0 rc627b2a  
    1515 */
    1616
     17/*
     18 *  RTEMS_API_INIT is defined so all of the RTEMS API
     19 *  data will be included in this object file.
     20 */
     21
     22#define RTEMS_API_INIT
     23
    1724#include <rtems/system.h>
    1825#include <rtems/rtems/status.h>
    1926#include <rtems/rtems/rtemsapi.h>
    20 
    21 #define INIT
    2227
    2328#include <rtems/rtems/intr.h>
  • cpukit/score/include/rtems/debug.h

    rc6fa38c0 rc627b2a  
    4141 */
    4242
    43 EXTERN rtems_debug_control _Debug_Level;
     43SCORE_EXTERN rtems_debug_control _Debug_Level;
    4444
    4545/*
  • cpukit/score/include/rtems/score/apiext.h

    rc6fa38c0 rc627b2a  
    4444 */
    4545 
    46 EXTERN Chain_Control _API_extensions_List;
     46SCORE_EXTERN Chain_Control _API_extensions_List;
    4747
    4848/*
  • cpukit/score/include/rtems/score/bitfield.h

    rc6fa38c0 rc627b2a  
    4141#if ( CPU_USE_GENERIC_BITFIELD_DATA == TRUE )
    4242
    43 #ifndef INIT
    44   extern const unsigned char __log2table[256];
     43#ifndef SCORE_INIT
     44extern const unsigned char __log2table[256];
    4545#else
    4646const unsigned char __log2table[256] = {
  • cpukit/score/include/rtems/score/context.h

    rc6fa38c0 rc627b2a  
    3636 */
    3737
    38 EXTERN boolean _Context_Switch_necessary;
     38SCORE_EXTERN boolean _Context_Switch_necessary;
    3939
    4040/*
  • cpukit/score/include/rtems/score/copyrt.h

    rc6fa38c0 rc627b2a  
    2222#endif
    2323
    24 #ifdef INIT
     24#ifdef SCORE_INIT
    2525
    2626const char _Copyright_Notice[] =
  • cpukit/score/include/rtems/score/interr.h

    rc6fa38c0 rc627b2a  
    7171 */
    7272
    73 EXTERN Internal_errors_Information Internal_errors_What_happened;
     73SCORE_EXTERN Internal_errors_Information Internal_errors_What_happened;
    7474
    7575/*
  • cpukit/score/include/rtems/score/isr.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN boolean    _ISR_Signals_to_thread_executing;
     71SCORE_EXTERN boolean    _ISR_Signals_to_thread_executing;
    7272
    7373/*
     
    7676 */
    7777
    78 EXTERN unsigned32 _ISR_Nest_level;
     78SCORE_EXTERN unsigned32 _ISR_Nest_level;
    7979
    8080/*
     
    8383 */
    8484
    85 EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ];
     85SCORE_EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ];
    8686
    8787/*
  • cpukit/score/include/rtems/score/mpci.h

    rc6fa38c0 rc627b2a  
    128128 */
    129129
    130 EXTERN CORE_semaphore_Control _MPCI_Semaphore;
     130SCORE_EXTERN CORE_semaphore_Control _MPCI_Semaphore;
    131131/*
    132132 *  The following thread queue is used to maintain a list of tasks
     
    134134 */
    135135
    136 EXTERN Thread_queue_Control _MPCI_Remote_blocked_threads;
     136SCORE_EXTERN Thread_queue_Control _MPCI_Remote_blocked_threads;
    137137
    138138/*
     
    141141 */
    142142 
    143 EXTERN MPCI_Control *_MPCI_table;
     143SCORE_EXTERN MPCI_Control *_MPCI_table;
    144144
    145145/*
     
    147147 */
    148148 
    149 EXTERN Thread_Control *_MPCI_Receive_server_tcb;
     149SCORE_EXTERN Thread_Control *_MPCI_Receive_server_tcb;
    150150
    151151/*
     
    154154 */
    155155
    156 EXTERN MPCI_Packet_processor _MPCI_Packet_processors[MP_PACKET_CLASSES_LAST+1];
     156SCORE_EXTERN MPCI_Packet_processor
     157               _MPCI_Packet_processors[MP_PACKET_CLASSES_LAST+1];
    157158
    158159/*
  • cpukit/score/include/rtems/score/object.h

    rc6fa38c0 rc627b2a  
    152152 */
    153153
    154 EXTERN unsigned32  _Objects_Local_node;
    155 EXTERN unsigned32  _Objects_Maximum_nodes;
     154SCORE_EXTERN unsigned32  _Objects_Local_node;
     155SCORE_EXTERN unsigned32  _Objects_Maximum_nodes;
    156156
    157157/*
     
    161161 */
    162162
    163 EXTERN Objects_Information
     163SCORE_EXTERN Objects_Information
    164164    *_Objects_Information_table[OBJECTS_CLASSES_LAST + 1];
    165165
  • cpukit/score/include/rtems/score/objectmp.h

    rc6fa38c0 rc627b2a  
    138138 */
    139139
    140 EXTERN unsigned32     _Objects_MP_Maximum_global_objects;
    141 EXTERN Chain_Control  _Objects_MP_Inactive_global_objects;
     140SCORE_EXTERN unsigned32     _Objects_MP_Maximum_global_objects;
     141SCORE_EXTERN Chain_Control  _Objects_MP_Inactive_global_objects;
    142142
    143143#ifndef __RTEMS_APPLICATION__
  • cpukit/score/include/rtems/score/priority.h

    rc6fa38c0 rc627b2a  
    5959 */
    6060
    61 EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map;
    62 EXTERN Priority_Bit_map_control _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
     61SCORE_EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map;
     62SCORE_EXTERN Priority_Bit_map_control
     63               _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
    6364
    6465/*
  • cpukit/score/include/rtems/score/sysstate.h

    rc6fa38c0 rc627b2a  
    4545 */
    4646 
    47 EXTERN boolean _System_state_Is_multiprocessing;
     47SCORE_EXTERN boolean _System_state_Is_multiprocessing;
    4848
    4949/*
     
    5151 */
    5252
    53 EXTERN System_state_Codes _System_state_Current;
     53SCORE_EXTERN System_state_Codes _System_state_Current;
    5454
    5555/*
  • cpukit/score/include/rtems/score/thread.h

    rc6fa38c0 rc627b2a  
    174174 */
    175175 
    176 EXTERN Objects_Information _Thread_Internal_information;
     176SCORE_EXTERN Objects_Information _Thread_Internal_information;
    177177 
    178178/*
     
    181181 */
    182182 
    183 EXTERN Thread_Control *_Thread_Idle;
     183SCORE_EXTERN Thread_Control *_Thread_Idle;
    184184
    185185/*
     
    191191 */
    192192 
    193 EXTERN Context_Control _Thread_BSP_context;
     193SCORE_EXTERN Context_Control _Thread_BSP_context;
    194194 
    195195/*
     
    199199 */
    200200
    201 EXTERN unsigned32 _Thread_Dispatch_disable_level;
     201SCORE_EXTERN unsigned32 _Thread_Dispatch_disable_level;
    202202
    203203/*
     
    207207 */
    208208
    209 EXTERN unsigned32 _Thread_Maximum_extensions;
     209SCORE_EXTERN unsigned32 _Thread_Maximum_extensions;
    210210
    211211/*
     
    213213 */
    214214
    215 EXTERN unsigned32 _Thread_Ticks_remaining_in_timeslice;
    216 EXTERN unsigned32 _Thread_Ticks_per_timeslice;
     215SCORE_EXTERN unsigned32 _Thread_Ticks_remaining_in_timeslice;
     216SCORE_EXTERN unsigned32 _Thread_Ticks_per_timeslice;
    217217
    218218/*
     
    221221 */
    222222
    223 EXTERN Chain_Control *_Thread_Ready_chain;
     223SCORE_EXTERN Chain_Control *_Thread_Ready_chain;
    224224
    225225/*
     
    228228 */
    229229
    230 EXTERN Thread_Control *_Thread_Executing;
     230SCORE_EXTERN Thread_Control *_Thread_Executing;
    231231
    232232/*
     
    237237 */
    238238
    239 EXTERN Thread_Control *_Thread_Heir;
     239SCORE_EXTERN Thread_Control *_Thread_Heir;
    240240
    241241/*
     
    244244 */
    245245
    246 EXTERN Thread_Control *_Thread_Allocated_fp;
     246SCORE_EXTERN Thread_Control *_Thread_Allocated_fp;
    247247
    248248/*
  • cpukit/score/include/rtems/score/threadmp.h

    rc6fa38c0 rc627b2a  
    6969 */
    7070
    71 EXTERN Thread_Control *_Thread_MP_Receive;
     71SCORE_EXTERN Thread_Control *_Thread_MP_Receive;
    7272
    7373/*
     
    7575 */
    7676
    77 EXTERN Chain_Control _Thread_MP_Active_proxies;
    78 EXTERN Chain_Control _Thread_MP_Inactive_proxies;
     77SCORE_EXTERN Chain_Control _Thread_MP_Active_proxies;
     78SCORE_EXTERN Chain_Control _Thread_MP_Inactive_proxies;
    7979
    8080#ifndef __RTEMS_APPLICATION__
  • cpukit/score/include/rtems/score/threadq.h

    rc6fa38c0 rc627b2a  
    5353             );
    5454
    55 EXTERN Thread_queue_Extract_callout 
     55SCORE_EXTERN Thread_queue_Extract_callout 
    5656  _Thread_queue_Extract_table[ OBJECTS_CLASSES_LAST + 1 ];
    5757
  • cpukit/score/include/rtems/score/tod.h

    rc6fa38c0 rc627b2a  
    7070 */
    7171
    72 EXTERN TOD_Control _TOD_Current;
     72SCORE_EXTERN TOD_Control _TOD_Current;
    7373
    7474/*
     
    7777 */
    7878
    79 EXTERN Watchdog_Interval _TOD_Seconds_since_epoch;
     79SCORE_EXTERN Watchdog_Interval _TOD_Seconds_since_epoch;
    8080
    8181/*
     
    8484 */
    8585
    86 EXTERN Watchdog_Interval _TOD_Ticks_since_boot;
     86SCORE_EXTERN Watchdog_Interval _TOD_Ticks_since_boot;
    8787
    8888/*
     
    9090 */
    9191
    92 EXTERN unsigned32 _TOD_Microseconds_per_tick;
     92SCORE_EXTERN unsigned32 _TOD_Microseconds_per_tick;
    9393
    9494/*
     
    103103 */
    104104
    105 EXTERN unsigned32 _TOD_Ticks_per_second;
     105SCORE_EXTERN unsigned32 _TOD_Ticks_per_second;
    106106
    107107/*
     
    110110 */
    111111
    112 EXTERN Watchdog_Control _TOD_Seconds_watchdog;
    113 
    114 #ifdef INIT
     112SCORE_EXTERN Watchdog_Control _TOD_Seconds_watchdog;
     113
     114#ifdef SCORE_INIT
    115115
    116116/*
  • cpukit/score/include/rtems/score/userext.h

    rc6fa38c0 rc627b2a  
    101101 */
    102102
    103 EXTERN User_extensions_Control _User_extensions_Initial;
     103SCORE_EXTERN User_extensions_Control _User_extensions_Initial;
    104104
    105105/*
     
    107107 */
    108108
    109 EXTERN Chain_Control _User_extensions_List;
     109SCORE_EXTERN Chain_Control _User_extensions_List;
    110110
    111111/*
  • cpukit/score/include/rtems/score/watchdog.h

    rc6fa38c0 rc627b2a  
    9393 */
    9494
    95 EXTERN volatile unsigned32  _Watchdog_Sync_level;
    96 EXTERN volatile unsigned32  _Watchdog_Sync_count;
     95SCORE_EXTERN volatile unsigned32  _Watchdog_Sync_level;
     96SCORE_EXTERN volatile unsigned32  _Watchdog_Sync_count;
    9797
    9898/*
     
    101101 */
    102102
    103 EXTERN Chain_Control _Watchdog_Ticks_chain;
    104 EXTERN Chain_Control _Watchdog_Seconds_chain;
     103SCORE_EXTERN Chain_Control _Watchdog_Ticks_chain;
     104SCORE_EXTERN Chain_Control _Watchdog_Seconds_chain;
    105105
    106106/*
  • cpukit/score/include/rtems/score/wkspace.h

    rc6fa38c0 rc627b2a  
    3131 */
    3232
    33 EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
     33SCORE_EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
    3434
    3535/*
  • cpukit/score/include/rtems/system.h

    rc6fa38c0 rc627b2a  
    3737/*
    3838 *  The following insures that all data is declared in the space
    39  *  of the Initialization Manager.  It is referenced as "external"
    40  *  in every other file.
     39 *  of the initialization routine for either the Initialization Manager
     40 *  or the initialization file for the appropriate API.  It is
     41 *  referenced as "external" in every other file.
    4142 */
    4243
    43 #ifdef INIT
    44 #undef EXTERN
    45 #define EXTERN
     44#ifdef SCORE_INIT
     45#undef  SCORE_EXTERN
     46#define SCORE_EXTERN
    4647#else
    47 #undef EXTERN
    48 #define EXTERN  extern
     48#undef  SCORE_EXTERN
     49#define SCORE_EXTERN  extern
     50#endif
     51
     52#ifdef SAPI_INIT
     53#undef  SAPI_EXTERN
     54#define SAPI_EXTERN
     55#else
     56#undef  SAPI_EXTERN
     57#define SAPI_EXTERN  extern
     58#endif
     59
     60#ifdef RTEMS_API_INIT
     61#undef  RTEMS_EXTERN
     62#define RTEMS_EXTERN
     63#else
     64#undef  RTEMS_EXTERN
     65#define RTEMS_EXTERN  extern
     66#endif
     67
     68#ifdef POSIX_API_INIT
     69#undef  POSIX_EXTERN
     70#define POSIX_EXTERN
     71#else
     72#undef  POSIX_EXTERN
     73#define POSIX_EXTERN  extern
    4974#endif
    5075
     
    119144 */
    120145
    121 EXTERN rtems_cpu_table _CPU_Table;               /* CPU dependent info */
     146SCORE_EXTERN rtems_cpu_table _CPU_Table;               /* CPU dependent info */
    122147
    123148/*
Note: See TracChangeset for help on using the changeset viewer.