Changeset 4ad07d0 in ada-examples for hello_world_ada/init.c


Ignore:
Timestamp:
Jul 17, 2007, 7:12:31 PM (14 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
ada-examples-4-10-branch, ada-examples-4-8-branch, ada-examples-4-9-branch, master
Children:
9e6e1e8
Parents:
8b09de0
Message:

2007-07-17 Joel Sherrill <joel.sherrill@…>

  • hello_world_ada/Makefile.anybsp, hello_world_ada/Makefile.pc386, hello_world_ada/Makefile.score603e, hello_world_ada/init.c: Clean up GNAT_MAIN_STACKSIZE.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • hello_world_ada/init.c

    r8b09de0 r4ad07d0  
    11/*
    2  *  COPYRIGHT (c) 1989-1997.
     2 *  COPYRIGHT (c) 1989-2007.
    33 *  On-Line Applications Research Corporation (OAR).
    4  *  Copyright assigned to U.S. Government, 1994.
    54 *
    65 *  The license and distribution terms for this file may be found in
     
    4847extern  size_t  _ada_pthread_minimum_stack_size();
    4948
     49#ifndef GNAT_MAIN_STACKSPACE
     50#define GNAT_MAIN_STACKSPACE 0
     51#endif
    5052void *POSIX_Init( void *argument )
    5153{
    5254  pthread_t       thread_id;
    5355  pthread_attr_t  attr;
    54   size_t          stacksize = _ada_pthread_minimum_stack_size();
     56  size_t          stacksize;
    5557  int             status;
    5658  printk( "Starting Posix Init thread\n" );
     
    5961  assert( !status );
    6062
    61 #define GNAT_MAIN_STACKSPACE 100
    62 #ifdef GNAT_MAIN_STACKSPACE
    6363  stacksize = GNAT_MAIN_STACKSPACE * 1024;
    64 #else
    65 #define GNAT_MAIN_STACKSPACE 0
    66 #endif
     64  if ( stacksize < _ada_pthread_minimum_stack_size() )
     65    stacksize = _ada_pthread_minimum_stack_size();
    6766
    6867  status = pthread_attr_setstacksize( &attr, stacksize );
     
    9392
    9493#define CONFIGURE_MEMORY_OVERHEAD        (GNAT_MAIN_STACKSPACE)
    95 /*
    96 #define CONFIGURE_MEMORY_OVERHEAD        (256 + GNAT_MAIN_STACKSPACE)
    97 */
    9894
    9995#define CONFIGURE_INIT
Note: See TracChangeset for help on using the changeset viewer.