RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
include
rtems
sysinit.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
10
11
/*
12
* Copyright (C) 2015, 2023 embedded brains GmbH & Co. KG
13
*
14
* Redistribution and use in source and binary forms, with or without
15
* modification, are permitted provided that the following conditions
16
* are met:
17
* 1. Redistributions of source code must retain the above copyright
18
* notice, this list of conditions and the following disclaimer.
19
* 2. Redistributions in binary form must reproduce the above copyright
20
* notice, this list of conditions and the following disclaimer in the
21
* documentation and/or other materials provided with the distribution.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
* POSSIBILITY OF SUCH DAMAGE.
34
*/
35
36
#ifndef _RTEMS_SYSINIT_H
37
#define _RTEMS_SYSINIT_H
38
39
#include <
rtems/linkersets.h
>
40
41
#ifdef __cplusplus
42
extern
"C"
{
43
#endif
/* __cplusplus */
44
50
void
_Sysinit_Verbose
(
void
);
51
61
#define _RTEMS_SYSINIT_INDEX_ITEM( handler, index ) \
62
enum { _Sysinit_##handler = index }; \
63
RTEMS_LINKER_ROSET_ITEM_ORDERED( \
64
_Sysinit, \
65
rtems_sysinit_item, \
66
handler, \
67
index \
68
) = { handler }
69
79
#define _RTEMS_SYSINIT_ITEM( handler, module, order ) \
80
_RTEMS_SYSINIT_INDEX_ITEM( handler, 0x##module##order )
81
92
93
/*
94
* The value of each module define must consist of exactly six hexadecimal
95
* digits without a 0x-prefix. A 0x-prefix is concatenated with the module and
96
* order values to form a proper integer literal.
97
*/
98
#define RTEMS_SYSINIT_RECORD 000100
99
#define RTEMS_SYSINIT_BSP_EARLY 000140
100
#define RTEMS_SYSINIT_MEMORY 000180
101
#define RTEMS_SYSINIT_DIRTY_MEMORY 0001c0
102
#define RTEMS_SYSINIT_ZERO_MEMORY 0001e0
103
#define RTEMS_SYSINIT_ISR_STACK 000200
104
#define RTEMS_SYSINIT_PER_CPU_DATA 000220
105
#define RTEMS_SYSINIT_SBRK 000240
106
#define RTEMS_SYSINIT_STACK_ALLOCATOR 000250
107
#define RTEMS_SYSINIT_WORKSPACE 000260
108
#define RTEMS_SYSINIT_MALLOC 000280
109
#define RTEMS_SYSINIT_BSP_START 000300
110
#define RTEMS_SYSINIT_CPU_COUNTER 000400
111
#define RTEMS_SYSINIT_TARGET_HASH 000480
112
#define RTEMS_SYSINIT_INITIAL_EXTENSIONS 000500
113
#define RTEMS_SYSINIT_MP_EARLY 000600
114
#define RTEMS_SYSINIT_DATA_STRUCTURES 000700
115
#define RTEMS_SYSINIT_SCHEDULER 000780
116
#define RTEMS_SYSINIT_MP 000800
117
#define RTEMS_SYSINIT_USER_EXTENSIONS 000900
118
#define RTEMS_SYSINIT_CLASSIC_TASKS 000a00
119
#define RTEMS_SYSINIT_CLASSIC_TASKS_MP 000a80
120
#define RTEMS_SYSINIT_CLASSIC_TIMER 000b00
121
#define RTEMS_SYSINIT_CLASSIC_SIGNAL_MP 000c00
122
#define RTEMS_SYSINIT_CLASSIC_EVENT_MP 000d00
123
#define RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE 000e00
124
#define RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE_MP 000e80
125
#define RTEMS_SYSINIT_CLASSIC_SEMAPHORE 000f00
126
#define RTEMS_SYSINIT_CLASSIC_SEMAPHORE_MP 000f80
127
#define RTEMS_SYSINIT_CLASSIC_PARTITION 001000
128
#define RTEMS_SYSINIT_CLASSIC_PARTITION_MP 001080
129
#define RTEMS_SYSINIT_CLASSIC_REGION 001100
130
#define RTEMS_SYSINIT_CLASSIC_DUAL_PORTED_MEMORY 001200
131
#define RTEMS_SYSINIT_CLASSIC_RATE_MONOTONIC 001300
132
#define RTEMS_SYSINIT_CLASSIC_BARRIER 001400
133
#define RTEMS_SYSINIT_POSIX_SIGNALS 001500
134
#define RTEMS_SYSINIT_POSIX_THREADS 001600
135
#define RTEMS_SYSINIT_POSIX_MESSAGE_QUEUE 001700
136
#define RTEMS_SYSINIT_POSIX_SEMAPHORE 001800
137
#define RTEMS_SYSINIT_POSIX_TIMER 001900
138
#define RTEMS_SYSINIT_POSIX_SHM 001a00
139
#define RTEMS_SYSINIT_POSIX_KEYS 001b00
140
#define RTEMS_SYSINIT_POSIX_CLEANUP 001c00
141
#define RTEMS_SYSINIT_IDLE_THREADS 001d00
142
#define RTEMS_SYSINIT_LIBIO 001e00
143
#define RTEMS_SYSINIT_USER_ENVIRONMENT 001e80
144
#define RTEMS_SYSINIT_ROOT_FILESYSTEM 001f00
145
#define RTEMS_SYSINIT_DRVMGR 002000
146
#define RTEMS_SYSINIT_MP_SERVER 002100
147
#define RTEMS_SYSINIT_BSP_PRE_DRIVERS 002200
148
#define RTEMS_SYSINIT_DRVMGR_LEVEL_1 002300
149
#define RTEMS_SYSINIT_DEVICE_DRIVERS 002400
150
#define RTEMS_SYSINIT_DRVMGR_LEVEL_2 002500
151
#define RTEMS_SYSINIT_DRVMGR_LEVEL_3 002600
152
#define RTEMS_SYSINIT_DRVMGR_LEVEL_4 002700
153
#define RTEMS_SYSINIT_MP_FINALIZE 002800
154
#define RTEMS_SYSINIT_CLASSIC_USER_TASKS 002900
155
#define RTEMS_SYSINIT_POSIX_USER_THREADS 002a00
156
#define RTEMS_SYSINIT_STD_FILE_DESCRIPTORS 002b00
157
#define RTEMS_SYSINIT_LAST ffffff
158
159
/*
160
* The value of each order define must consist of exactly two hexadecimal
161
* digits without a 0x-prefix. A 0x-prefix is concatenated with the module and
162
* order values to form a proper integer literal.
163
*/
164
#define RTEMS_SYSINIT_ORDER_FIRST 00
165
#define RTEMS_SYSINIT_ORDER_SECOND 01
166
#define RTEMS_SYSINIT_ORDER_THIRD 02
167
#define RTEMS_SYSINIT_ORDER_FOURTH 03
168
#define RTEMS_SYSINIT_ORDER_FIFTH 04
169
#define RTEMS_SYSINIT_ORDER_SIXTH 05
170
#define RTEMS_SYSINIT_ORDER_SEVENTH 06
171
#define RTEMS_SYSINIT_ORDER_EIGHTH 07
172
#define RTEMS_SYSINIT_ORDER_NINETH 08
173
#define RTEMS_SYSINIT_ORDER_TENTH 09
174
#define RTEMS_SYSINIT_ORDER_MIDDLE 80
175
#define RTEMS_SYSINIT_ORDER_LAST_BUT_9 f6
176
#define RTEMS_SYSINIT_ORDER_LAST_BUT_8 f7
177
#define RTEMS_SYSINIT_ORDER_LAST_BUT_7 f8
178
#define RTEMS_SYSINIT_ORDER_LAST_BUT_6 f9
179
#define RTEMS_SYSINIT_ORDER_LAST_BUT_5 fa
180
#define RTEMS_SYSINIT_ORDER_LAST_BUT_4 fb
181
#define RTEMS_SYSINIT_ORDER_LAST_BUT_3 fc
182
#define RTEMS_SYSINIT_ORDER_LAST_BUT_2 fd
183
#define RTEMS_SYSINIT_ORDER_LAST_BUT_1 fe
184
#define RTEMS_SYSINIT_ORDER_LAST ff
185
186
typedef
void ( *rtems_sysinit_handler )( void );
187
188
typedef
struct
{
189
rtems_sysinit_handler handler;
190
}
rtems_sysinit_item
;
191
204
#define RTEMS_SYSINIT_ITEM( handler, module, order ) \
205
_RTEMS_SYSINIT_ITEM( handler, module, order )
206
208
209
#ifdef __cplusplus
210
}
211
#endif
/* __cplusplus */
212
213
#endif
/* _RTEMS_SYSINIT_H */
_Sysinit_Verbose
void _Sysinit_Verbose(void)
Enables a verbose system initialization.
Definition
sysinitverbose.c:154
linkersets.h
This header file provides the linker sets API.
rtems_sysinit_item
Definition
sysinit.h:188
Generated by
1.18.0