Changeset b3dcd9a2 in rtems


Ignore:
Timestamp:
Feb 19, 1998, 10:54:35 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
fde74a3
Parents:
41f61bc
Message:

Accounted for fixed system overhead.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/sapi/headers/confdefs.h

    r41f61bc rb3dcd9a2  
    350350
    351351#define CONFIGURE_MEMORY_FOR_TASKS(_tasks) \
    352   ((_tasks) * \
     352  (((_tasks) + 1 ) * \
    353353   ((sizeof(Thread_Control) + CONTEXT_FP_SIZE + \
    354354      STACK_MINIMUM_SIZE + sizeof( RTEMS_API_Control ) + \
     
    402402#define CONFIGURE_MEMORY_FOR_MP \
    403403  ( CONFIGURE_MEMORY_FOR_PROXIES(CONFIGURE_MP_MAXIMUM_PROXIES) + \
    404     CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) \
     404    CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) + \
     405    CONFIGURE_MEMORY_FOR_TASKS(1)
    405406  )
    406407
     
    415416#define CONFIGURE_MEMORY_OVERHEAD 0
    416417#endif
     418
     419#define CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD \
     420  ( CONFIGURE_MEMORY_FOR_TASKS(1) +    /* IDLE */ \
     421    (256 * 12) +                       /* Ready chains */ \
     422    256                                /* name/ptr table overhead */ \
     423  )
    417424
    418425#define CONFIGURE_EXECUTIVE_RAM_SIZE \
     
    428435   CONFIGURE_MEMORY_FOR_DEVICES(CONFIGURE_MAXIMUM_DEVICES) + \
    429436   CONFIGURE_MEMORY_FOR_MP + \
     437   CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD + \
    430438   (((CONFIGURE_MEMORY_OVERHEAD)+1) * 1024) \
    431439) & 0xfffffc00)
  • c/src/exec/sapi/include/confdefs.h

    r41f61bc rb3dcd9a2  
    350350
    351351#define CONFIGURE_MEMORY_FOR_TASKS(_tasks) \
    352   ((_tasks) * \
     352  (((_tasks) + 1 ) * \
    353353   ((sizeof(Thread_Control) + CONTEXT_FP_SIZE + \
    354354      STACK_MINIMUM_SIZE + sizeof( RTEMS_API_Control ) + \
     
    402402#define CONFIGURE_MEMORY_FOR_MP \
    403403  ( CONFIGURE_MEMORY_FOR_PROXIES(CONFIGURE_MP_MAXIMUM_PROXIES) + \
    404     CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) \
     404    CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) + \
     405    CONFIGURE_MEMORY_FOR_TASKS(1)
    405406  )
    406407
     
    415416#define CONFIGURE_MEMORY_OVERHEAD 0
    416417#endif
     418
     419#define CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD \
     420  ( CONFIGURE_MEMORY_FOR_TASKS(1) +    /* IDLE */ \
     421    (256 * 12) +                       /* Ready chains */ \
     422    256                                /* name/ptr table overhead */ \
     423  )
    417424
    418425#define CONFIGURE_EXECUTIVE_RAM_SIZE \
     
    428435   CONFIGURE_MEMORY_FOR_DEVICES(CONFIGURE_MAXIMUM_DEVICES) + \
    429436   CONFIGURE_MEMORY_FOR_MP + \
     437   CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD + \
    430438   (((CONFIGURE_MEMORY_OVERHEAD)+1) * 1024) \
    431439) & 0xfffffc00)
  • cpukit/sapi/include/confdefs.h

    r41f61bc rb3dcd9a2  
    350350
    351351#define CONFIGURE_MEMORY_FOR_TASKS(_tasks) \
    352   ((_tasks) * \
     352  (((_tasks) + 1 ) * \
    353353   ((sizeof(Thread_Control) + CONTEXT_FP_SIZE + \
    354354      STACK_MINIMUM_SIZE + sizeof( RTEMS_API_Control ) + \
     
    402402#define CONFIGURE_MEMORY_FOR_MP \
    403403  ( CONFIGURE_MEMORY_FOR_PROXIES(CONFIGURE_MP_MAXIMUM_PROXIES) + \
    404     CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) \
     404    CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) + \
     405    CONFIGURE_MEMORY_FOR_TASKS(1)
    405406  )
    406407
     
    415416#define CONFIGURE_MEMORY_OVERHEAD 0
    416417#endif
     418
     419#define CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD \
     420  ( CONFIGURE_MEMORY_FOR_TASKS(1) +    /* IDLE */ \
     421    (256 * 12) +                       /* Ready chains */ \
     422    256                                /* name/ptr table overhead */ \
     423  )
    417424
    418425#define CONFIGURE_EXECUTIVE_RAM_SIZE \
     
    428435   CONFIGURE_MEMORY_FOR_DEVICES(CONFIGURE_MAXIMUM_DEVICES) + \
    429436   CONFIGURE_MEMORY_FOR_MP + \
     437   CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD + \
    430438   (((CONFIGURE_MEMORY_OVERHEAD)+1) * 1024) \
    431439) & 0xfffffc00)
Note: See TracChangeset for help on using the changeset viewer.