5
Last change
on this file since 3d73642 was
80cf60e,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 07:48:32
|
Canonicalize config.h include
Use the following variant which was already used by most source files:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup RTEMSScoreUserExt |
---|
5 | * |
---|
6 | * @brief User Extension Handler implementation. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2008. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #ifdef HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/score/userextimpl.h> |
---|
23 | |
---|
24 | void _User_extensions_Handler_initialization(void) |
---|
25 | { |
---|
26 | const User_extensions_Table *initial_table; |
---|
27 | User_extensions_Switch_control *initial_switch_controls; |
---|
28 | size_t n; |
---|
29 | size_t i; |
---|
30 | |
---|
31 | initial_table = _User_extensions_Initial_extensions; |
---|
32 | initial_switch_controls = _User_extensions_Initial_switch_controls; |
---|
33 | n = _User_extensions_Initial_count; |
---|
34 | |
---|
35 | for ( i = 0 ; i < n ; ++i ) { |
---|
36 | User_extensions_thread_switch_extension callout; |
---|
37 | |
---|
38 | callout = initial_table[ i ].thread_switch; |
---|
39 | |
---|
40 | if ( callout != NULL ) { |
---|
41 | User_extensions_Switch_control *c; |
---|
42 | |
---|
43 | c = &initial_switch_controls[ i ]; |
---|
44 | c->thread_switch = callout; |
---|
45 | _Chain_Initialize_node( &c->Node ); |
---|
46 | _Chain_Append_unprotected( &_User_extensions_Switches_list, &c->Node ); |
---|
47 | } |
---|
48 | } |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.