source: rtems/cpukit/score/src/userext.c @ 3db9c820

Last change on this file since 3db9c820 was 9278f3d, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 27, 2020 at 4:21:23 PM

score: Canonicalize Doxygen @file comments

Use common phrases for the file brief descriptions.

Update #3706.

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