source: rtems/cpukit/libgnat/adasupp.c @ b2d788b3

4.11
Last change on this file since b2d788b3 was b2d788b3, checked in by Jan Sommer <soja-lists@…>, on Oct 29, 2015 at 9:10:31 PM

ada: Add missing include

Include stackimpl.h otherwise PTHREAD_MINIMUM_STACK_SIZE cannot be
evaluated.

  • Property mode set to 100644
File size: 681 bytes
Line 
1#if HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#include <errno.h>
6#include <pthread.h>
7
8#include <rtems/system.h>
9#include <rtems/config.h>
10#include <rtems/posix/pthreadimpl.h>
11#include <rtems/score/stackimpl.h>
12
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}
29
30uint32_t _ada_microseconds_per_tick(void)
31{
32  return rtems_configuration_get_microseconds_per_tick();
33}
Note: See TracBrowser for help on using the repository browser.