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

4.104.114.84.95
Last change on this file since bd5efa92 was 0f9e7f96, checked in by Joel Sherrill <joel.sherrill@…>, on 01/03/03 at 22:51:40

2003-01-03 Joel Sherrill <joel@…>

  • ada.am, samples/ticker/Makefile.am, sptests/sp01/Makefile.am, sptests/sp01/config.h, sptests/sp04/Makefile.am, sptests/sp04/config.h, support/init.c: Modified build rules slightly so gnat_main is used as the Ada main entry point. Modified sp01 and sp04 Makefile.am's to compile and link with init.o. The test config.h's specified the Ada application requirements -- not the Classic API ones.
  • Property mode set to 100644
File size: 991 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
3 *  On-Line Applications Research Corporation (OAR).
4 *  All rights assigned to U.S. Government, 1994.
5 *
6 *  This material may be reproduced by or for the U.S. Government pursuant
7 *  to the copyright license under the clause at DFARS 252.227-7013.  This
8 *  notice must appear in all copies of this file and its derivatives.
9 *
10 *  $Id$
11 */
12
13#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
14#include <bsp.h>
15#include <stdlib.h>
16
17void *POSIX_Init(
18  void *argument
19)
20{
21  extern int gnat_main ( int argc, char **argv, char **envp );
22
23  (void) gnat_main ( 0, 0, 0 );
24
25  exit( 0 );
26}
27
28/*
29 *  Only for sp04
30 */
31
32rtems_id tcb_to_id(
33  Thread_Control *tcb
34)
35{
36  return tcb->Object.id;
37}
38
39/*
40 *  By putting this in brackets rather than quotes, we get the search
41 *  path and can get this file from ".." in the mptests.
42 */
43
44#define CONFIGURE_INIT
45#define CONFIGURE_GNAT_RTEMS
46#define CONFIGURE_MEMORY_OVERHEAD        (256)
47
48#include <config.h>
Note: See TracBrowser for help on using the repository browser.