1 | /* init.h |
---|
2 | * |
---|
3 | * This include file contains all the constants and structures associated |
---|
4 | * with the Initialization Manager. This manager is responsible for |
---|
5 | * initializing RTEMS, creating and starting all configured initialization |
---|
6 | * tasks, invoking the initialization routine for each user-supplied device |
---|
7 | * driver, and initializing the optional multiprocessor layer. |
---|
8 | * |
---|
9 | * This manager provides directives to: |
---|
10 | * |
---|
11 | * + initialize the RTEMS executive |
---|
12 | * + shutdown the RTEMS executive |
---|
13 | * |
---|
14 | * |
---|
15 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
16 | * On-Line Applications Research Corporation (OAR). |
---|
17 | * All rights assigned to U.S. Government, 1994. |
---|
18 | * |
---|
19 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
20 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
21 | * notice must appear in all copies of this file and its derivatives. |
---|
22 | * |
---|
23 | * $Id$ |
---|
24 | */ |
---|
25 | |
---|
26 | #ifndef __RTEMS_INIT_h |
---|
27 | #define __RTEMS_INIT_h |
---|
28 | |
---|
29 | #ifdef __cplusplus |
---|
30 | extern "C" { |
---|
31 | #endif |
---|
32 | |
---|
33 | #include <rtems/types.h> |
---|
34 | #include <rtems/config.h> |
---|
35 | #include <rtems/intr.h> |
---|
36 | |
---|
37 | /* |
---|
38 | * rtems_initialize_executive |
---|
39 | * |
---|
40 | * DESCRIPTION: |
---|
41 | * |
---|
42 | * This routine implements the rtems_initialize_executive directive. This |
---|
43 | * directive is invoked at system startup to initialize the RTEMS |
---|
44 | * multitasking environment. |
---|
45 | */ |
---|
46 | |
---|
47 | void rtems_initialize_executive( |
---|
48 | rtems_configuration_table *configuration_table, |
---|
49 | rtems_cpu_table *cpu_table |
---|
50 | ); |
---|
51 | |
---|
52 | /* |
---|
53 | * rtems_initialize_executive_early |
---|
54 | * |
---|
55 | * DESCRIPTION: |
---|
56 | * |
---|
57 | * This routine implements the early portion of rtems_initialize_executive |
---|
58 | * directive up to the pretasking hook. This directive is invoked at system |
---|
59 | * startup to initialize the RTEMS multitasking environment. |
---|
60 | */ |
---|
61 | |
---|
62 | rtems_interrupt_level rtems_initialize_executive_early( |
---|
63 | rtems_configuration_table *configuration_table, |
---|
64 | rtems_cpu_table *cpu_table |
---|
65 | ); |
---|
66 | |
---|
67 | /* |
---|
68 | * rtems_initialize_executive_late |
---|
69 | * |
---|
70 | * DESCRIPTION: |
---|
71 | * |
---|
72 | * This routine implements the early portion of rtems_initialize_executive |
---|
73 | * directive up to the pretasking hook. This directive is invoked at system |
---|
74 | * startup to initialize the RTEMS multitasking environment. |
---|
75 | */ |
---|
76 | |
---|
77 | void rtems_initialize_executive_late( |
---|
78 | rtems_interrupt_level bsp_level |
---|
79 | ); |
---|
80 | |
---|
81 | /* |
---|
82 | * rtems_shutdown_executive |
---|
83 | * |
---|
84 | * DESCRIPTION: |
---|
85 | * |
---|
86 | * This routine implements the rtems_shutdown_executive directive. The |
---|
87 | * invocation of this directive results in the RTEMS environment being |
---|
88 | * shutdown and multitasking halted. From the application's perspective, |
---|
89 | * invocation of this directive results in the rtems_initialize_executive |
---|
90 | * directive exitting to the startup code which invoked it. |
---|
91 | */ |
---|
92 | |
---|
93 | void rtems_shutdown_executive( |
---|
94 | unsigned32 result |
---|
95 | ); |
---|
96 | |
---|
97 | #ifdef __cplusplus |
---|
98 | } |
---|
99 | #endif |
---|
100 | |
---|
101 | #endif |
---|
102 | /* end of include file */ |
---|