4.115
Last change
on this file since 4c794c8 was
237f4611,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/16/08 at 15:59:26
|
2008-12-16 Joel Sherrill <joel.sherrill@…>
- libgnat/adasupp.c: Add helper method so Ada binding does not
reference _TOD_Microseconds_per_tick.
|
-
Property mode set to
100644
|
File size:
659 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/config.h> |
---|
14 | #include <rtems/posix/pthread.h> |
---|
15 | |
---|
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 | |
---|
23 | size_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 | } |
---|
32 | |
---|
33 | uint32_t _ada_microseconds_per_tick(void) |
---|
34 | { |
---|
35 | return rtems_configuration_get_microseconds_per_tick(); |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.