Changeset be1c11ed in rtems for cpukit/sapi


Ignore:
Timestamp:
05/29/96 22:48:26 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a96a713
Parents:
dd32d883
Message:

tests now specify whether using posix initialization threads table
or rtems initialization table in configuration table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    rdd32d883 rbe1c11ed  
    2828extern rtems_multiprocessing_table      Multiprocessing_configuration;
    2929#ifdef RTEMS_POSIX_API
    30 extern posix_api_configuration_table Configuration_POSIX_API;
     30extern posix_api_configuration_table    Configuration_POSIX_API;
    3131#endif
    3232
     
    3636 */
    3737
    38 #ifndef CONFIGURE_HAS_OWN_INIT_TASK_TABLE
     38#ifdef CONFIGURE_RTEMS_INIT_TASKS_TABLE
     39
     40#ifdef CONFIGURE_HAS_OWN_INIT_TASK_TABLE
     41
     42/*
     43 *  The user is defining their own table information and setting the
     44 *  appropriate variables.
     45 */
     46
     47#else
    3948
    4049#ifndef CONFIGURE_INIT_TASK_NAME
     
    8493  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    8594
     95#endif    /* CONFIGURE_HAS_OWN_INIT_TASK_TABLE */
     96
     97#else     /* CONFIGURE_RTEMS_INIT_TASKS_TABLE */
     98
     99#define CONFIGURE_INIT_TASK_TABLE      NULL
     100#define CONFIGURE_INIT_TASK_TABLE_SIZE 0
     101
    86102#endif
    87103
     
    266282#endif
    267283
    268 #ifndef CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE
    269 
    270 #ifndef CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT
    271 #define CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT   Init
     284#ifdef CONFIGURE_POSIX_INIT_THREAD_TABLE
     285
     286#ifdef CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE
     287
     288/*
     289 *  The user is defining their own table information and setting the
     290 *  appropriate variables.
     291 */
     292 
     293#else
     294
     295#ifndef CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT
     296#define CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT   POSIX_Init
    272297#endif
    273298
    274299#ifdef CONFIGURE_INIT
    275 posix_initialization_tasks_table POSIX_Initialization_tasks[] = {
    276   { CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT }
    277 };
    278 #endif
    279 
    280 #define CONFIGURE_POSIX_INIT_TASK_TABLE POSIX_Initialization_tasks
    281  
    282 #define CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE \
    283   sizeof(CONFIGURE_POSIX_INIT_TASK_TABLE) / \
    284       sizeof(posix_initialization_tasks_table)
     300posix_initialization_threads_table POSIX_Initialization_threads[] = {
     301  { CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT }
     302};
     303#endif
     304
     305#define CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME POSIX_Initialization_threads
     306 
     307#define CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE \
     308  sizeof(CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME) / \
     309      sizeof(posix_initialization_threads_table)
    285310
    286311#endif    /* CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE */
     312
     313#else     /* CONFIGURE_POSIX_INIT_THREAD_TABLE */
     314
     315#define CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME NULL
     316#define CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE 0
     317
     318#endif
    287319
    288320#endif    /* RTEMS_POSIX_API */
     
    413445  CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES,
    414446  CONFIGURE_MAXIMUM_POSIX_KEYS,
    415   CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE,
    416   CONFIGURE_POSIX_INIT_TASK_TABLE
     447  CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE,
     448  CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME
    417449};
    418450#endif
Note: See TracChangeset for help on using the changeset viewer.