source: rtems/testsuites/samples/paranoia/init.c @ 3a9d9e1

4.115
Last change on this file since 3a9d9e1 was e313551, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/22/11 at 10:58:44

Add HAVE_CONFIG_H.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *  It is called from init_exec and has the responsibility for creating
5 *  and starting the tasks that make up the test.  If the time of day
6 *  clock is required for the test, it should also be set to a known
7 *  value by this function.
8 *
9 *  Input parameters:  NONE
10 *
11 *  Output parameters:  NONE
12 *
13 *  COPYRIGHT (c) 1989-1999.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.com/license/LICENSE.
19 *
20 *  $Id$
21 */
22
23#ifdef HAVE_CONFIG_H
24#include "config.h"
25#endif
26
27#define CONFIGURE_INIT
28#include "system.h"
29#include <stdio.h>
30#include <stdlib.h> /* exit */
31
32extern int paranoia(int, char **);
33
34char *args[2] = { "paranoia", 0 };
35
36rtems_task Init(
37  rtems_task_argument ignored
38)
39{
40  /*
41   *  Install whatever optional floating point assistance package
42   *  is required by this CPU.
43   */
44
45#if BSP_SMALL_MEMORY
46  printf("NO Paranoia Test. MEMORY TOO SMALL");
47#else
48
49#if (defined (m68040))
50  M68KFPSPInstallExceptionHandlers ();
51#endif
52
53  printf( "\n\n*** PARANOIA TEST ***\n" );
54  paranoia(1, args);
55  printf( "*** END OF PARANOIA TEST ***\n" );
56#endif /* BSP_SMALL_MEMORY */
57  exit( 0 );
58}
Note: See TracBrowser for help on using the repository browser.