Changeset 3f1bf0c in rtems for cpukit/sapi


Ignore:
Timestamp:
May 27, 2015, 7:04:25 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ffe14b26
Parents:
67901a82
Message:

sapi: Fix workspace size estimate

File:
1 edited

Legend:

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

    r67901a82 r3f1bf0c  
    2828#include <rtems.h>
    2929#include <rtems/score/apimutex.h>
     30#include <rtems/score/heapimpl.h>
    3031#include <rtems/score/wkspace.h>
    3132
     
    29462947
    29472948/*
     2949 * We must be able to split the free block used for the second last allocation
     2950 * into two parts so that we have a free block for the last allocation.  See
     2951 * _Heap_Block_split().
     2952 */
     2953#define CONFIGURE_HEAP_HANDLER_OVERHEAD \
     2954  _Configure_Align_up( HEAP_ALLOC_BONUS, CPU_HEAP_ALIGNMENT )
     2955
     2956/*
    29482957 *  Calculate the RAM size based on the maximum number of objects configured.
    29492958 */
     
    31073116 */
    31083117#define CONFIGURE_EXECUTIVE_RAM_SIZE \
    3109 (( \
     3118( \
    31103119   CONFIGURE_MEMORY_FOR_SYSTEM_OVERHEAD + \
    31113120   CONFIGURE_MEMORY_FOR_TASKS( \
     
    31223131   CONFIGURE_MEMORY_FOR_SMP + \
    31233132   CONFIGURE_MESSAGE_BUFFER_MEMORY + \
    3124    (CONFIGURE_MEMORY_OVERHEAD * 1024) \
    3125 ) & ~0x7)
     3133   (CONFIGURE_MEMORY_OVERHEAD * 1024) + \
     3134   CONFIGURE_HEAP_HANDLER_OVERHEAD \
     3135)
    31263136
    31273137/*
     
    32543264    CONFIGURE_EXTRA_MPCI_RECEIVE_SERVER_STACK + \
    32553265    CONFIGURE_LIBBLOCK_TASK_EXTRA_STACKS + \
    3256     CONFIGURE_EXTRA_TASK_STACKS \
     3266    CONFIGURE_EXTRA_TASK_STACKS + \
     3267    CONFIGURE_HEAP_HANDLER_OVERHEAD \
    32573268  )
    32583269
Note: See TracChangeset for help on using the changeset viewer.