source: rtems/cpukit/sapi/include/rtems/init.h @ 8ca372e

Last change on this file since 8ca372e was 8ca372e, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 26, 2016 at 9:11:48 AM

Use linker set for MPCI initialization

Update #2408.

  • Property mode set to 100644
File size: 1.8 KB
Line 
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
32extern "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 */
49void 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 */
60void 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 */
Note: See TracBrowser for help on using the repository browser.