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 | #if __rtems__ |
---|
28 | #include <bsp.h> /* for device driver prototypes */ |
---|
29 | #endif |
---|
30 | |
---|
31 | #include <stdio.h> |
---|
32 | #include <stdlib.h> |
---|
33 | |
---|
34 | extern void domathf(void); |
---|
35 | |
---|
36 | #if __rtems__ |
---|
37 | rtems_task Init( |
---|
38 | rtems_task_argument ignored |
---|
39 | ) |
---|
40 | #else |
---|
41 | int main( void ) |
---|
42 | #endif |
---|
43 | { |
---|
44 | fprintf( stdout, "*** FLOAT MATH TEST ***\n" ); |
---|
45 | |
---|
46 | domathf(); |
---|
47 | |
---|
48 | fprintf( stdout, "*** END OF FLOAT MATH TEST ***\n" ); |
---|
49 | exit( 0 ); |
---|
50 | } |
---|
51 | |
---|
52 | #if __rtems__ |
---|
53 | /* NOTICE: the clock driver is explicitly disabled */ |
---|
54 | #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
55 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
56 | |
---|
57 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
58 | #define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT |
---|
59 | #define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM |
---|
60 | |
---|
61 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
62 | |
---|
63 | #define CONFIGURE_INIT |
---|
64 | #include <rtems/confdefs.h> |
---|
65 | #endif |
---|