source: rtems/cpukit/score/src/userext.c

Last change on this file 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
RevLine 
[c42d1a4]1/**
2 * @file
3 *
[4c20da4]4 * @ingroup RTEMSScoreUserExt
[c42d1a4]5 *
[9278f3d]6 * @brief This source file contains the implementation of
7 *   _User_extensions_Handler_initialization().
[c42d1a4]8 */
9
[5072b07]10/*
[790b50b]11 *  COPYRIGHT (c) 1989-2008.
[5072b07]12 *  On-Line Applications Research Corporation (OAR).
13 *
[98e4ebf]14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
[c499856]16 *  http://www.rtems.org/license/LICENSE.
[5072b07]17 */
18
[80cf60e]19#ifdef HAVE_CONFIG_H
20#include "config.h"
[a8eed23]21#endif
22
[3be0c9a]23#include <rtems/score/userextimpl.h>
[5072b07]24
[0a97ba5b]25void _User_extensions_Handler_initialization(void)
[5072b07]26{
[0a97ba5b]27  const User_extensions_Table    *initial_table;
[5ae6112]28  User_extensions_Switch_control *initial_switch_controls;
29  size_t                          n;
30  size_t                          i;
[790b50b]31
[5ae6112]32  initial_table = _User_extensions_Initial_extensions;
33  initial_switch_controls = _User_extensions_Initial_switch_controls;
34  n = _User_extensions_Initial_count;
[05279b84]35
[0a97ba5b]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
[5ae6112]44      c = &initial_switch_controls[ i ];
[0a97ba5b]45      c->thread_switch = callout;
[992494e]46      _Chain_Initialize_node( &c->Node );
[0a97ba5b]47      _Chain_Append_unprotected( &_User_extensions_Switches_list, &c->Node );
48    }
49  }
[5072b07]50}
Note: See TracBrowser for help on using the repository browser.