source: rtems/c/src/ada-tests/support/init.c @ 3495c57

4.104.115
Last change on this file since 3495c57 was 3495c57, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2009 at 3:49:08 AM

Whitespace removal.

  • 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
12void *POSIX_Init(
13  void *argument
14)
15{
16  extern int gnat_main ( int argc, char **argv, char **envp );
17
18  (void) gnat_main ( 0, 0, 0 );
19
20  exit( 0 );
21}
22
23/*
24 *  Only for sp04 and sp07
25 */
26
27rtems_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
46uint32_t milliseconds_per_tick(void)
47{
48  return CONFIGURE_MICROSECONDS_PER_TICK / 1000;
49}
50
51uint32_t ticks_per_second(void)
52{
53  /* XXX HACK -- use public API */
54  return TOD_TICKS_PER_SECOND;
55}
56
57uint32_t work_space_size(void)
58{
59  return CONFIGURE_EXECUTIVE_RAM_SIZE;
60}
61
62uint32_t is_configured_multiprocessing(void)
63{
64#if defined(RTEMS_MULTIPROCESSING)
65  return 1;
66#else
67  return 0;
68#endif
69}
70
71uint32_t get_node(void)
72{
73  /* XXX HACK -- use public API */
74  return _Objects_Local_node;
75}
Note: See TracBrowser for help on using the repository browser.