Changeset 517bf08 in rtems


Ignore:
Timestamp:
Dec 13, 2011, 10:52:21 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
fa011f35
Parents:
9c2d082b
Message:

2011-12-13 Sebastian Huber <sebastian.huber@…>

  • sapi/include/confdefs.h: Fixed workspace size estimate of POSIX keys and message queues.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r9c2d082b r517bf08  
     12011-12-13      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * sapi/include/confdefs.h: Fixed workspace size estimate of POSIX keys
     4        and message queues.
     5
    162011-12-13      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/sapi/include/confdefs.h

    r9c2d082b r517bf08  
    15281528  #define _Configure_POSIX_Named_Object_RAM(_number, _size) \
    15291529    _Configure_Object_RAM( (_number), _size ) + \
    1530     ((_number) + _Configure_From_workspace(NAME_MAX) )
     1530    ((_number) * _Configure_From_workspace(NAME_MAX) )
    15311531
    15321532  #ifndef CONFIGURE_MAXIMUM_POSIX_THREADS
     
    15351535
    15361536  #define CONFIGURE_MEMORY_PER_TASK_FOR_POSIX_API \
    1537     _Configure_From_workspace( \
    1538       sizeof (POSIX_API_Control) + \
    1539      (sizeof (void *) * (CONFIGURE_MAXIMUM_POSIX_KEYS)) \
    1540     )
     1537    _Configure_From_workspace(sizeof(POSIX_API_Control))
    15411538
    15421539  #ifndef CONFIGURE_MAXIMUM_POSIX_MUTEXES
     
    15621559  #else
    15631560    #define CONFIGURE_MEMORY_FOR_POSIX_KEYS(_keys) \
    1564       _Configure_Object_RAM(_keys, sizeof(POSIX_Keys_Control) )
     1561      (_Configure_Object_RAM(_keys, sizeof(POSIX_Keys_Control) ) \
     1562        + (_keys) * 3 * _Configure_From_workspace(sizeof(void *) * 2))
    15651563  #endif
    15661564
     
    15991597
    16001598    #define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUE_DESCRIPTORS(_mqueue_fds) \
    1601       _Configure_POSIX_Named_Object_RAM( \
     1599      _Configure_Object_RAM( \
    16021600         _mqueue_fds, sizeof(POSIX_Message_queue_Control_fd) )
    16031601  #endif
Note: See TracChangeset for help on using the changeset viewer.