source: rtems/cpukit/posix/src/adasupp.c @ e7a36a9

4.104.114.84.95
Last change on this file since e7a36a9 was e7a36a9, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 8, 1996 at 4:21:48 PM

Ada task stack size minimize is twice that for regular pthreads.

  • Property mode set to 100644
File size: 512 bytes
Line 
1/*
2 *  $Id$
3 */
4 
5#include <assert.h>
6#include <errno.h>
7#include <pthread.h>
8
9#include <rtems/system.h>
10#include <rtems/posix/pthread.h>
11
12/*PAGE
13 *
14 *  _ada_pthread_minimum_stack_size
15 *
16 *  This routine returns the minimum stack size so the GNAT RTS can
17 *  allocate enough stack for Ada tasks.
18 */
19
20size_t _ada_pthread_minimum_stack_size( void ) 
21{
22  /*
23   *  Eventually this may need to include a per cpu family calculation
24   *  but for now, this will do.
25   */ 
26
27  return PTHREAD_MINIMUM_STACK_SIZE * 2;
28}
Note: See TracBrowser for help on using the repository browser.