4.115
Last change
on this file since ae75429 was
ae75429,
checked in by Sebastian Huber <sebastian.huber@…>, on 08/06/13 at 14:10:26
|
PR766: Delete RTEMS_VIOLATE_KERNEL_VISIBILITY
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2007 |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | */ |
---|
5 | |
---|
6 | #include <bsp.h> |
---|
7 | #include <stdlib.h> |
---|
8 | |
---|
9 | /* |
---|
10 | * This is the entry point automatically generated by GNAT. |
---|
11 | */ |
---|
12 | extern int gnat_main ( int argc, char **argv, char **envp ); |
---|
13 | |
---|
14 | void *POSIX_Init( |
---|
15 | void *argument |
---|
16 | ) |
---|
17 | { |
---|
18 | (void) gnat_main ( 0, 0, 0 ); |
---|
19 | |
---|
20 | exit( 0 ); |
---|
21 | } |
---|
22 | |
---|
23 | /* |
---|
24 | * Only for sp04 and sp07 |
---|
25 | */ |
---|
26 | |
---|
27 | rtems_id tcb_to_id( |
---|
28 | Thread_Control *tcb |
---|
29 | ) |
---|
30 | { |
---|
31 | return tcb->Object.id; |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | /* |
---|
36 | * By putting this in brackets rather than quotes, we get the search |
---|
37 | * path and can get this file from ".." in the mptests. |
---|
38 | */ |
---|
39 | |
---|
40 | #define CONFIGURE_INIT |
---|
41 | #define CONFIGURE_GNAT_RTEMS |
---|
42 | #define CONFIGURE_MEMORY_OVERHEAD (256) |
---|
43 | |
---|
44 | #include <config.h> |
---|
45 | |
---|
46 | uint32_t milliseconds_per_tick(void) |
---|
47 | { |
---|
48 | return CONFIGURE_MICROSECONDS_PER_TICK / 1000; |
---|
49 | } |
---|
50 | |
---|
51 | uint32_t ticks_per_second(void) |
---|
52 | { |
---|
53 | return rtems_clock_get_ticks_per_second(); |
---|
54 | } |
---|
55 | |
---|
56 | uint32_t work_space_size(void) |
---|
57 | { |
---|
58 | return CONFIGURE_EXECUTIVE_RAM_SIZE; |
---|
59 | } |
---|
60 | |
---|
61 | uint32_t is_configured_multiprocessing(void) |
---|
62 | { |
---|
63 | #if defined(RTEMS_MULTIPROCESSING) |
---|
64 | return 1; |
---|
65 | #else |
---|
66 | return 0; |
---|
67 | #endif |
---|
68 | } |
---|
69 | |
---|
70 | uint32_t get_node(void) |
---|
71 | { |
---|
72 | /* XXX HACK -- use public API */ |
---|
73 | return _Objects_Local_node; |
---|
74 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.