source: rtems/c/src/ada-tests/support/init.c @ 61250b4

4.115
Last change on this file since 61250b4 was 110e1f1, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/09 at 21:17:59

2009-12-14 Joel Sherrill <joel.sherrill@…>

  • samples/base_sp/sptest.adb, samples/hello/sptest.adb, samples/nsecs/sptest.adb, samples/ticker/sptest.adb, sptests/sp01/sptest.adb, sptests/sp02/sptest.adb, sptests/sp03/sptest.adb, sptests/sp04/sptest.adb, sptests/sp05/sptest.adb, sptests/sp06/sptest.adb, sptests/sp07/sptest.adb, sptests/sp08/sptest.adb, sptests/sp09/sptest.adb, sptests/sp11/sptest.adb, sptests/sp12/sptest.adb, sptests/sp13/sptest.adb, sptests/sp14/sptest.adb, sptests/sp15/sptest.adb, sptests/sp16/sptest.adb, sptests/sp17/sptest.adb, sptests/sp19/sptest.adp, sptests/sp20/sptest.adb, sptests/sp22/sptest.adb, sptests/sp23/sptest.adb, sptests/sp24/sptest.adb, sptests/sp25/sptest.adb, sptests/spname01/spname01.adb, sptests/spname01/sptest.adb, sptests/spname01/sptest.ads, support/address_io.adb, support/init.c, support/test_support.adb, support/test_support.ads, support/time_test_support.adb, support/timer_driver.adb, tmtests/tm01/tmtest.adb, tmtests/tm01/tmtest.ads, tmtests/tm02/tmtest.adb, tmtests/tm02/tmtest.ads, tmtests/tm03/tmtest.adb, tmtests/tm03/tmtest.ads, tmtests/tm04/tmtest.adb, tmtests/tm04/tmtest.ads, tmtests/tm05/tmtest.adb, tmtests/tm05/tmtest.ads, tmtests/tm06/tmtest.adb, tmtests/tm06/tmtest.ads, tmtests/tm07/tmtest.adb, tmtests/tm07/tmtest.ads, tmtests/tm08/tmtest.adb, tmtests/tm08/tmtest.ads, tmtests/tm09/tmtest.adb, tmtests/tm09/tmtest.ads, tmtests/tm10/tmtest.adb, tmtests/tm10/tmtest.ads, tmtests/tm11/tmtest.adb, tmtests/tm11/tmtest.ads, tmtests/tm12/tmtest.adb, tmtests/tm12/tmtest.ads, tmtests/tm13/tmtest.adb, tmtests/tm13/tmtest.ads, tmtests/tm14/tmtest.adb, tmtests/tm14/tmtest.ads, tmtests/tm15/tmtest.adb, tmtests/tm15/tmtest.ads, tmtests/tm16/tmtest.adb, tmtests/tm16/tmtest.ads, tmtests/tm17/tmtest.adb, tmtests/tm17/tmtest.ads, tmtests/tm18/tmtest.adb, tmtests/tm18/tmtest.ads, tmtests/tm19/tmtest.adb, tmtests/tm19/tmtest.ads, tmtests/tm20/tmtest.adb, tmtests/tm20/tmtest.ads, tmtests/tm21/tmtest.adb, tmtests/tm21/tmtest.ads, tmtests/tm22/tmtest.adb, tmtests/tm22/tmtest.ads, tmtests/tm23/tmtest.adb, tmtests/tm23/tmtest.ads, tmtests/tm24/tmtest.adb, tmtests/tm24/tmtest.ads, tmtests/tm25/tmtest.adb, tmtests/tm25/tmtest.ads, tmtests/tm28/tmtest.adb, tmtests/tm28/tmtest.ads, tmtests/tm29/tmtest.adb, tmtests/tm29/tmtest.ads, tmtests/tmck/tmtest.adb, tmtests/tmck/tmtest.ads, tmtests/tmoverhd/dummy_rtems.adb, tmtests/tmoverhd/tmtest.adb, tmtests/tmoverhd/tmtest.ads: Remove many warnings.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2007
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  $Id$
6 */
7
8#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
9#include <bsp.h>
10#include <stdlib.h>
11
12/*
13 * This is the entry point automatically generated by GNAT.
14 */
15extern int gnat_main ( int argc, char **argv, char **envp );
16
17void *POSIX_Init(
18  void *argument
19)
20{
21  (void) gnat_main ( 0, 0, 0 );
22
23  exit( 0 );
24}
25
26/*
27 *  Only for sp04 and sp07
28 */
29
30rtems_id tcb_to_id(
31  Thread_Control *tcb
32)
33{
34  return tcb->Object.id;
35}
36
37
38/*
39 *  By putting this in brackets rather than quotes, we get the search
40 *  path and can get this file from ".." in the mptests.
41 */
42
43#define CONFIGURE_INIT
44#define CONFIGURE_GNAT_RTEMS
45#define CONFIGURE_MEMORY_OVERHEAD  (256)
46
47#include <config.h>
48
49uint32_t milliseconds_per_tick(void)
50{
51  return CONFIGURE_MICROSECONDS_PER_TICK / 1000;
52}
53
54uint32_t ticks_per_second(void)
55{
56  /* XXX HACK -- use public API */
57  return TOD_TICKS_PER_SECOND;
58}
59
60uint32_t work_space_size(void)
61{
62  return CONFIGURE_EXECUTIVE_RAM_SIZE;
63}
64
65uint32_t is_configured_multiprocessing(void)
66{
67#if defined(RTEMS_MULTIPROCESSING)
68  return 1;
69#else
70  return 0;
71#endif
72}
73
74uint32_t get_node(void)
75{
76  /* XXX HACK -- use public API */
77  return _Objects_Local_node;
78}
Note: See TracBrowser for help on using the repository browser.