source: rtems/testsuites/samples/paranoia/init.c @ 5f0cd34

4.115
Last change on this file since 5f0cd34 was 5f0cd34, checked in by Joel Sherrill <joel.sherrill@…>, on 05/12/12 at 16:12:57

samples - Eliminate missing prototype warnings

  • Property mode set to 100644
File size: 928 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#define CONFIGURE_INIT
15#include "system.h"
16#include <stdio.h>
17#include <stdlib.h> /* exit */
18
19extern int paranoia(int, char **);
20
21char *args[2] = { "paranoia", 0 };
22
23rtems_task Init(
24  rtems_task_argument ignored
25)
26{
27  /*
28   *  Install whatever optional floating point assistance package
29   *  is required by this CPU.
30   */
31
32#if BSP_SMALL_MEMORY
33  printf("NO Paranoia Test. MEMORY TOO SMALL");
34#else
35
36#if (defined (m68040))
37  M68KFPSPInstallExceptionHandlers ();
38#endif
39
40  printf( "\n\n*** PARANOIA TEST ***\n" );
41  paranoia(1, args);
42  printf( "*** END OF PARANOIA TEST ***\n" );
43#endif /* BSP_SMALL_MEMORY */
44  exit( 0 );
45}
Note: See TracBrowser for help on using the repository browser.