OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [sapi/] [include/] [rtems/] [init.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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-1999.
16
 *  On-Line Applications Research Corporation (OAR).
17
 *
18
 *  The license and distribution terms for this file may be
19
 *  found in the file LICENSE in this distribution or at
20
 *  http://www.OARcorp.com/rtems/license.html.
21
 *
22
 *  $Id: init.h,v 1.2 2001-09-27 11:59:19 chris Exp $
23
 */
24
 
25
#ifndef __RTEMS_INIT_h
26
#define __RTEMS_INIT_h
27
 
28
#ifdef __cplusplus
29
extern "C" {
30
#endif
31
 
32
#include <rtems/rtems/types.h>
33
#include <rtems/config.h>
34
#include <rtems/rtems/intr.h>
35
 
36
/*
37
 *  The following defines the default Multiprocessing Configuration
38
 *  Table.  This table is used in a single processor system.
39
 */
40
 
41
extern const rtems_multiprocessing_table
42
  _Initialization_Default_multiprocessing_table;
43
 
44
/*
45
 *  rtems_initialize_executive
46
 *
47
 *  DESCRIPTION:
48
 *
49
 *  This routine implements the rtems_initialize_executive directive.  This
50
 *  directive is invoked at system startup to initialize the RTEMS
51
 *  multitasking environment.
52
 */
53
 
54
void rtems_initialize_executive(
55
  rtems_configuration_table *configuration_table,
56
  rtems_cpu_table           *cpu_table
57
);
58
 
59
/*
60
 *  rtems_initialize_executive_early
61
 *
62
 *  DESCRIPTION:
63
 *
64
 *  This routine implements the early portion of rtems_initialize_executive
65
 *  directive up to the pretasking hook. This directive is invoked at system
66
 *  startup to initialize the RTEMS multitasking environment.
67
 */
68
 
69
rtems_interrupt_level rtems_initialize_executive_early(
70
  rtems_configuration_table *configuration_table,
71
  rtems_cpu_table           *cpu_table
72
);
73
 
74
/*
75
 *  rtems_initialize_executive_late
76
 *
77
 *  DESCRIPTION:
78
 *
79
 *  This routine implements the early portion of rtems_initialize_executive
80
 *  directive up to the pretasking hook. This directive is invoked at system
81
 *  startup to initialize the RTEMS multitasking environment.
82
 */
83
 
84
void rtems_initialize_executive_late(
85
  rtems_interrupt_level bsp_level
86
);
87
 
88
/*
89
 *  rtems_shutdown_executive
90
 *
91
 *  DESCRIPTION:
92
 *
93
 *  This routine implements the rtems_shutdown_executive directive.  The
94
 *  invocation of this directive results in the RTEMS environment being
95
 *  shutdown and multitasking halted.  From the application's perspective,
96
 *  invocation of this directive results in the rtems_initialize_executive
97
 *  directive exitting to the startup code which invoked it.
98
 */
99
 
100
void rtems_shutdown_executive(
101
  unsigned32 result
102
);
103
 
104
#ifdef __cplusplus
105
}
106
#endif
107
 
108
#endif
109
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.