[ac7d5ef0] | 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/config.h> |
---|
| 34 | #include <rtems/intr.h> |
---|
| 35 | |
---|
| 36 | /* |
---|
| 37 | * rtems_initialize_executive |
---|
| 38 | * |
---|
| 39 | * DESCRIPTION: |
---|
| 40 | * |
---|
| 41 | * This routine implements the rtems_initialize_executive directive. This |
---|
| 42 | * directive is invoked at system startup to initialize the RTEMS |
---|
| 43 | * multitasking environment. |
---|
| 44 | */ |
---|
| 45 | |
---|
| 46 | void rtems_initialize_executive( |
---|
| 47 | rtems_configuration_table *configuration_table, |
---|
| 48 | rtems_cpu_table *cpu_table |
---|
| 49 | ); |
---|
| 50 | |
---|
| 51 | /* |
---|
| 52 | * rtems_initialize_executive_early |
---|
| 53 | * |
---|
| 54 | * DESCRIPTION: |
---|
| 55 | * |
---|
| 56 | * This routine implements the early portion of rtems_initialize_executive |
---|
| 57 | * directive up to the pretasking hook. This directive is invoked at system |
---|
| 58 | * startup to initialize the RTEMS multitasking environment. |
---|
| 59 | */ |
---|
| 60 | |
---|
| 61 | rtems_interrupt_level rtems_initialize_executive_early( |
---|
| 62 | rtems_configuration_table *configuration_table, |
---|
| 63 | rtems_cpu_table *cpu_table |
---|
| 64 | ); |
---|
| 65 | |
---|
| 66 | /* |
---|
| 67 | * rtems_initialize_executive_late |
---|
| 68 | * |
---|
| 69 | * DESCRIPTION: |
---|
| 70 | * |
---|
| 71 | * This routine implements the early portion of rtems_initialize_executive |
---|
| 72 | * directive up to the pretasking hook. This directive is invoked at system |
---|
| 73 | * startup to initialize the RTEMS multitasking environment. |
---|
| 74 | */ |
---|
| 75 | |
---|
| 76 | void rtems_initialize_executive_late( |
---|
| 77 | rtems_interrupt_level bsp_level |
---|
| 78 | ); |
---|
| 79 | |
---|
| 80 | /* |
---|
| 81 | * rtems_shutdown_executive |
---|
| 82 | * |
---|
| 83 | * DESCRIPTION: |
---|
| 84 | * |
---|
| 85 | * This routine implements the rtems_shutdown_executive directive. The |
---|
| 86 | * invocation of this directive results in the RTEMS environment being |
---|
| 87 | * shutdown and multitasking halted. From the application's perspective, |
---|
| 88 | * invocation of this directive results in the rtems_initialize_executive |
---|
| 89 | * directive exitting to the startup code which invoked it. |
---|
| 90 | */ |
---|
| 91 | |
---|
| 92 | void rtems_shutdown_executive( |
---|
| 93 | unsigned32 result |
---|
| 94 | ); |
---|
| 95 | |
---|
| 96 | #ifdef __cplusplus |
---|
| 97 | } |
---|
| 98 | #endif |
---|
| 99 | |
---|
| 100 | #endif |
---|
| 101 | /* end of include file */ |
---|