1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Constants and Structures Associated |
---|
5 | * with the Initialization Manager |
---|
6 | * |
---|
7 | * This include file contains all the constants and structures associated |
---|
8 | * with the Initialization Manager. This manager is responsible for |
---|
9 | * initializing RTEMS, creating and starting all configured initialization |
---|
10 | * tasks, invoking the initialization routine for each user-supplied device |
---|
11 | * driver, and initializing the optional multiprocessor layer. |
---|
12 | * |
---|
13 | * This manager provides directives to: |
---|
14 | * |
---|
15 | * + initialize the RTEMS executive |
---|
16 | * + shutdown the RTEMS executive |
---|
17 | */ |
---|
18 | |
---|
19 | /* |
---|
20 | * COPYRIGHT (c) 1989-2008. |
---|
21 | * On-Line Applications Research Corporation (OAR). |
---|
22 | * |
---|
23 | * The license and distribution terms for this file may be |
---|
24 | * found in the file LICENSE in this distribution or at |
---|
25 | * http://www.rtems.org/license/LICENSE. |
---|
26 | */ |
---|
27 | |
---|
28 | #ifndef _RTEMS_INIT_H |
---|
29 | #define _RTEMS_INIT_H |
---|
30 | |
---|
31 | #ifdef __cplusplus |
---|
32 | extern "C" { |
---|
33 | #endif |
---|
34 | |
---|
35 | #include <rtems/rtems/types.h> |
---|
36 | #include <rtems/config.h> |
---|
37 | #include <rtems/rtems/intr.h> |
---|
38 | |
---|
39 | /** |
---|
40 | * @brief Initializes the system and starts multitasking. |
---|
41 | * |
---|
42 | * Iterates through the system initialization linker set and invokes the |
---|
43 | * registered handlers. The final step is to start multitasking. |
---|
44 | * |
---|
45 | * This directive should be called by boot_card() only. |
---|
46 | * |
---|
47 | * This directive does not return. |
---|
48 | */ |
---|
49 | void rtems_initialize_executive(void) |
---|
50 | RTEMS_NO_RETURN; |
---|
51 | |
---|
52 | /** |
---|
53 | * @brief Shutdown the RTEMS environment. |
---|
54 | * |
---|
55 | * This routine implements the rtems_shutdown_executive directive. The |
---|
56 | * invocation of this directive results in the RTEMS environment being |
---|
57 | * shutdown and multitasking halted. The system is terminated with a fatal |
---|
58 | * source of RTEMS_FATAL_SOURCE_EXIT and the specified result code. |
---|
59 | */ |
---|
60 | void rtems_shutdown_executive( |
---|
61 | uint32_t result |
---|
62 | ) RTEMS_NO_RETURN; |
---|
63 | |
---|
64 | #ifdef __cplusplus |
---|
65 | } |
---|
66 | #endif |
---|
67 | |
---|
68 | #endif |
---|
69 | /* end of include file */ |
---|