Changeset 16775a5 in rtems


Ignore:
Timestamp:
May 7, 1999, 4:36:29 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5a909149
Parents:
07001360
Message:

Patch from Jiri Gaisler <jgais@…> to allow stacksize
of POSIX Init thread to be user configured.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/include/rtems/posix/config.h

    r07001360 r16775a5  
    4040typedef struct {
    4141  void       *(*thread_entry)(void *);
     42  int       stack_size;
    4243} posix_initialization_threads_table;
    4344
  • c/src/exec/posix/src/pthread.c

    r07001360 r16775a5  
    261261    assert( !status );
    262262
    263     status = pthread_attr_setstacksize( &attr, PTHREAD_MINIMUM_STACK_SIZE * 2 );
     263    status = pthread_attr_setstacksize( &attr, user_threads[ index ].stack_size);
    264264    assert( !status );
    265265
  • c/src/exec/sapi/include/confdefs.h

    r07001360 r16775a5  
    362362#endif
    363363
     364#ifndef CONFIGURE_POSIX_INIT_TASK_STACK_SIZE
     365#define CONFIGURE_POSIX_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
     366#endif
     367
    364368#ifdef CONFIGURE_POSIX_INIT_THREAD_TABLE
    365369
     
    379383#ifdef CONFIGURE_INIT
    380384posix_initialization_threads_table POSIX_Initialization_threads[] = {
    381   { CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT }
     385  { CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT, \
     386      CONFIGURE_POSIX_INIT_TASK_STACK_SIZE }
    382387};
    383388#endif
     
    434439    CONFIGURE_MEMORY_FOR_POSIX_KEYS( CONFIGURE_MAXIMUM_POSIX_KEYS ) + \
    435440    CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS( \
    436         CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS ) \
     441        CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS ) + \
     442    (CONFIGURE_POSIX_INIT_TASK_STACK_SIZE) \
    437443   )
    438444
  • cpukit/posix/include/rtems/posix/config.h

    r07001360 r16775a5  
    4040typedef struct {
    4141  void       *(*thread_entry)(void *);
     42  int       stack_size;
    4243} posix_initialization_threads_table;
    4344
  • cpukit/posix/src/pthread.c

    r07001360 r16775a5  
    261261    assert( !status );
    262262
    263     status = pthread_attr_setstacksize( &attr, PTHREAD_MINIMUM_STACK_SIZE * 2 );
     263    status = pthread_attr_setstacksize( &attr, user_threads[ index ].stack_size);
    264264    assert( !status );
    265265
  • cpukit/sapi/include/confdefs.h

    r07001360 r16775a5  
    362362#endif
    363363
     364#ifndef CONFIGURE_POSIX_INIT_TASK_STACK_SIZE
     365#define CONFIGURE_POSIX_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
     366#endif
     367
    364368#ifdef CONFIGURE_POSIX_INIT_THREAD_TABLE
    365369
     
    379383#ifdef CONFIGURE_INIT
    380384posix_initialization_threads_table POSIX_Initialization_threads[] = {
    381   { CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT }
     385  { CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT, \
     386      CONFIGURE_POSIX_INIT_TASK_STACK_SIZE }
    382387};
    383388#endif
     
    434439    CONFIGURE_MEMORY_FOR_POSIX_KEYS( CONFIGURE_MAXIMUM_POSIX_KEYS ) + \
    435440    CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS( \
    436         CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS ) \
     441        CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS ) + \
     442    (CONFIGURE_POSIX_INIT_TASK_STACK_SIZE) \
    437443   )
    438444
Note: See TracChangeset for help on using the changeset viewer.