Changeset 4ad07d0 in ada-examples


Ignore:
Timestamp:
Jul 17, 2007, 7:12:31 PM (12 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.
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r8b09de0 r4ad07d0  
     12007-07-17      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * hello_world_ada/Makefile.anybsp, hello_world_ada/Makefile.pc386,
     4        hello_world_ada/Makefile.score603e, hello_world_ada/init.c: Clean up
     5        GNAT_MAIN_STACKSIZE.
     6
    172007-07-17      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • hello_world_ada/Makefile.anybsp

    r8b09de0 r4ad07d0  
    2828rtemsdir=${RTEMS_MAKEFILE_PATH}
    2929GNATMAKE=$(AS:as=gnatmake)
    30 CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS)
     30CARGS =-B${rtemsdir}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS)
     31CARGS+=-DGNAT_MAIN_STACKSPACE=100
    3132
    3233all: init.o
  • hello_world_ada/Makefile.pc386

    r8b09de0 r4ad07d0  
    2222CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS) \
    2323   -Wl,-Ttext,$(RELOCADDR)
     24CARGS+=-DGNAT_MAIN_STACKSPACE=100
    2425
    2526all: init.o $(MAIN)
  • hello_world_ada/Makefile.score603e

    r8b09de0 r4ad07d0  
    1515
    1616CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=603
     17CARGS+=-DGNAT_MAIN_STACKSPACE=100
    1718
    1819all: init.o
  • 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.