source: rtems/cpukit/sapi/include/rtems/init.h @ 976162a6

4.104.114.9
Last change on this file since 976162a6 was 976162a6, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 3, 2007 at 10:23:13 PM

2007-12-03 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/malloc.c, libmisc/monitor/mon-command.c, posix/preinstall.am, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/semaphore.h, posix/src/conddestroy.c, posix/src/mutexdestroy.c, posix/src/mutexinit.c, posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c, sapi/include/confdefs.h, sapi/include/rtems/config.h, sapi/include/rtems/init.h, sapi/include/rtems/sptables.h, sapi/src/exinit.c, score/include/rtems/system.h, score/include/rtems/score/mpci.h, score/src/mpci.c, score/src/thread.c, score/src/threadcreateidle.c, score/src/threadstackallocate.c, score/src/threadstackfree.c, score/src/wkspace.c: Moved most of the remaining CPU Table fields to the Configuration Table. This included pretasking_hook, predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace, extra_mpci_receive_server_stack, stack_allocate_hook, and stack_free_hook. As a side-effect of this effort some multiprocessing code was made conditional and some style clean up occurred.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1/**
2 * @file rtems/init.h
3 *
4 *
5 *  This include file contains all the constants and structures associated
6 *  with the Initialization Manager.  This manager is responsible for
7 *  initializing RTEMS, creating and starting all configured initialization
8 *  tasks, invoking the initialization routine for each user-supplied device
9 *  driver, and initializing the optional multiprocessor layer.
10 *
11 *  This manager provides directives to:
12 *
13 *     + initialize the RTEMS executive
14 *     + shutdown the RTEMS executive
15 */
16 
17/*
18 *  COPYRIGHT (c) 1989-1999.
19 *  On-Line Applications Research Corporation (OAR).
20 *
21 *  The license and distribution terms for this file may be
22 *  found in the file LICENSE in this distribution or at
23 *  http://www.rtems.com/license/LICENSE.
24 *
25 *  $Id$
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#if defined(RTEMS_MULTIPROCESSING)
40/*
41 *  The following defines the default Multiprocessing Configuration
42 *  Table.  This table is used in a single processor system.
43 */
44
45extern const rtems_multiprocessing_table
46  _Initialization_Default_multiprocessing_table;
47#endif
48
49/*
50 *  rtems_initialize_executive_early
51 *
52 *  DESCRIPTION:
53 *
54 *  This routine implements the early portion of rtems_initialize_executive
55 *  directive up to the pretasking hook. This directive is invoked at system
56 *  startup to initialize the RTEMS multitasking environment.
57 */
58
59rtems_interrupt_level rtems_initialize_executive_early(
60  rtems_configuration_table *configuration_table,
61  rtems_cpu_table           *cpu_table
62);
63
64/*
65 *  rtems_initialize_executive_late
66 *
67 *  DESCRIPTION:
68 *
69 *  This routine implements the early portion of rtems_initialize_executive
70 *  directive up to the pretasking hook. This directive is invoked at system
71 *  startup to initialize the RTEMS multitasking environment.
72 */
73
74void rtems_initialize_executive_late(
75  rtems_interrupt_level bsp_level
76);
77
78/*
79 *  rtems_shutdown_executive
80 *
81 *  DESCRIPTION:
82 *
83 *  This routine implements the rtems_shutdown_executive directive.  The
84 *  invocation of this directive results in the RTEMS environment being
85 *  shutdown and multitasking halted.  From the application's perspective,
86 *  invocation of this directive results in the rtems_initialize_executive
87 *  directive exitting to the startup code which invoked it.
88 */
89
90void rtems_shutdown_executive(
91  uint32_t   result
92);
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
99/* end of include file */
Note: See TracBrowser for help on using the repository browser.