Changeset 7042065 in rtems


Ignore:
Timestamp:
May 23, 2007, 10:09:28 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
36c8e140
Parents:
bfa0476
Message:

2007-05-23 Joel Sherrill <joel.sherrill@…>

  • sapi/include/confdefs.h: Add CONFIGURE_MESSAGE_BUFFER_MEMORY so there is less dependence on CONFIGURE_MEMORY_OVERHEAD. Do not arbitrarily add 1 to CONFIGURE_MEMORY_OVERHEAD so we do not waste a kilobyte for unused Workspace. Round the workspace required size to an 8 byte boundary instead of a 0x400 byte one. We may end up needing to add 8 bytes again to account for the alignment rounding.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rbfa0476 r7042065  
     12007-05-23      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * sapi/include/confdefs.h: Add CONFIGURE_MESSAGE_BUFFER_MEMORY so there
     4        is less dependence on CONFIGURE_MEMORY_OVERHEAD. Do not arbitrarily
     5        add 1 to CONFIGURE_MEMORY_OVERHEAD so we do not waste a kilobyte for
     6        unused Workspace. Round the workspace required size to an 8 byte
     7        boundary instead of a 0x400 byte one. We may end up needing to add 8
     8        bytes again to account for the alignment rounding.
     9
    1102007-05-23      Joel Sherrill <joel.sherrill@OARcorp.com>
    211
  • cpukit/sapi/include/confdefs.h

    rbfa0476 r7042065  
    10021002#endif
    10031003
     1004/*
     1005 *  This is so we can account for tasks with stacks greater than minimum
     1006 *  size.  This is in bytes.
     1007 */
     1008#ifndef CONFIGURE_EXTRA_TASK_STACKS
     1009#define CONFIGURE_EXTRA_TASK_STACKS 0
     1010#endif
     1011
     1012/*
     1013 * Account for pending message buffers in bytes.
     1014 */
     1015#ifndef CONFIGURE_MESSAGE_BUFFER_MEMORY
     1016#define CONFIGURE_MESSAGE_BUFFER_MEMORY 0
     1017#endif
     1018
     1019/*
     1020 * Catch all for extra memory in case something broken and underestimates.
     1021 * Historically this was used for message buffers.
     1022 */
    10041023#ifndef CONFIGURE_MEMORY_OVERHEAD
    10051024#define CONFIGURE_MEMORY_OVERHEAD 0
    1006 #endif
    1007 
    1008 #ifndef CONFIGURE_EXTRA_TASK_STACKS
    1009 #define CONFIGURE_EXTRA_TASK_STACKS 0
    10101025#endif
    10111026
     
    10681083   CONFIGURE_MEMORY_FOR_MP + \
    10691084   CONFIGURE_MEMORY_FOR_SYSTEM_OVERHEAD + \
    1070    (((CONFIGURE_MEMORY_OVERHEAD)+1) * 1024) + \
     1085   CONFIGURE_MESSAGE_BUFFER_MEMORY + \
     1086   (CONFIGURE_MEMORY_OVERHEAD * 1024) + \
    10711087   (CONFIGURE_EXTRA_TASK_STACKS) + (CONFIGURE_ADA_TASKS_STACK) \
    1072 ) & 0xfffffc00)
     1088) & ~0x7)
    10731089#endif
    10741090
Note: See TracChangeset for help on using the changeset viewer.