Changeset 5c0c0cf in rtems for cpukit/sapi


Ignore:
Timestamp:
Mar 27, 2014, 1:23:21 PM (5 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
4.11, master
Children:
0cd2b777
Parents:
7d5c27e
git-author:
Christian Mauderer <Christian.Mauderer@…> (03/27/14 13:23:21)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/27/14 13:50:36)
Message:

privateenv: Use POSIX keys instead of task variables.

File:
1 edited

Legend:

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

    r7d5c27e r5c0c0cf  
    148148 */
    149149#define CONFIGURE_LIBIO_SEMAPHORES 1
     150
     151/**
     152 * POSIX key count used by the IO library.
     153 */
     154#define CONFIGURE_LIBIO_POSIX_KEYS 1
    150155
    151156#ifdef CONFIGURE_INIT
     
    17351740
    17361741#ifndef CONFIGURE_MAXIMUM_POSIX_KEYS
    1737   #define CONFIGURE_MAXIMUM_POSIX_KEYS            0
    1738   #define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS 0
    1739 #else
    1740   #ifndef CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS
    1741     #define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS \
    1742       (CONFIGURE_MAXIMUM_POSIX_KEYS * \
    1743        (CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_TASKS))
    1744   #endif
    1745 #endif
     1742  #define CONFIGURE_MAXIMUM_POSIX_KEYS 0
     1743#endif
     1744
     1745#ifndef CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS
     1746  #define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS \
     1747    (CONFIGURE_MAXIMUM_POSIX_KEYS * \
     1748     (CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_TASKS))
     1749#endif
     1750
     1751#define CONFIGURE_POSIX_KEYS \
     1752  (CONFIGURE_MAXIMUM_POSIX_KEYS + CONFIGURE_LIBIO_POSIX_KEYS)
    17461753
    17471754#define CONFIGURE_MEMORY_FOR_POSIX_KEYS(_keys, _key_value_pairs) \
     
    22232230   CONFIGURE_MEMORY_FOR_CLASSIC + \
    22242231   CONFIGURE_MEMORY_FOR_POSIX_KEYS( \
    2225       CONFIGURE_MAXIMUM_POSIX_KEYS, \
     2232      CONFIGURE_POSIX_KEYS, \
    22262233      CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS ) + \
    22272234   CONFIGURE_MEMORY_FOR_POSIX + \
     
    23982405    CONFIGURE_STACK_SPACE_SIZE,               /* required stack space */
    23992406    CONFIGURE_MAXIMUM_USER_EXTENSIONS,        /* maximum dynamic extensions */
    2400     CONFIGURE_MAXIMUM_POSIX_KEYS,             /* POSIX keys are always */
     2407    CONFIGURE_POSIX_KEYS,                     /* POSIX keys are always */
    24012408    CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS,  /*   enabled */
    24022409    CONFIGURE_MICROSECONDS_PER_TICK,          /* microseconds per clock tick */
     
    25932600    CONFIGURE_MEMORY_FOR_BARRIERS(CONFIGURE_BARRIERS),
    25942601    CONFIGURE_MEMORY_FOR_USER_EXTENSIONS(CONFIGURE_MAXIMUM_USER_EXTENSIONS),
    2595     CONFIGURE_MEMORY_FOR_POSIX_KEYS( CONFIGURE_MAXIMUM_POSIX_KEYS, \
     2602    CONFIGURE_MEMORY_FOR_POSIX_KEYS( CONFIGURE_POSIX_KEYS, \
    25962603                                     CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS ),
    25972604
Note: See TracChangeset for help on using the changeset viewer.