source: rtems/cpukit/libgnat/adasupp.c @ 20cdfd4

4.104.114.9
Last change on this file since 20cdfd4 was db27544, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 12, 2007 at 12:15:54 AM

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, posix/Makefile.am, wrapup/Makefile.am: Move Ada support code that is untestable from the Standard RTEMS Test Suite into its own directory. All code in score, posix, rtems, and sapi should be testable by the Standard RTEMS Test Suites. It was buried under POSIX before so this should be a clearer location anyway.
  • libgnat/.cvsignore, libgnat/Makefile.am, libgnat/ada_intrsupp.c, libgnat/adasupp.c: New files.
  • posix/src/ada_intrsupp.c, posix/src/adasupp.c: Removed.
  • Property mode set to 100644
File size: 535 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#if HAVE_CONFIG_H
6#include "config.h"
7#endif
8
9#include <errno.h>
10#include <pthread.h>
11
12#include <rtems/system.h>
13#include <rtems/posix/pthread.h>
14
15/*PAGE
16 *
17 *  _ada_pthread_minimum_stack_size
18 *
19 *  This routine returns the minimum stack size so the GNAT RTS can
20 *  allocate enough stack for Ada tasks.
21 */
22
23size_t _ada_pthread_minimum_stack_size( void )
24{
25  /*
26   *  Eventually this may need to include a per cpu family calculation
27   *  but for now, this will do.
28   */
29
30  return PTHREAD_MINIMUM_STACK_SIZE * 2;
31}
Note: See TracBrowser for help on using the repository browser.