source: rtems/cpukit/score/src/schedulersimple.c @ dc18190

4.115
Last change on this file since dc18190 was 439c494, checked in by Sebastian Huber <sebastian.huber@…>, on 04/03/14 at 10:02:09

score: Add and use Scheduler_simple_Control

  • Property mode set to 100644
File size: 730 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Scheduler Simple Functions
5 *
6 * @ingroup ScoreScheduler
7 */
8
9/*
10 *  COPYRIGHT (c) 2011.
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#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/score/schedulersimple.h>
23#include <rtems/score/chainimpl.h>
24#include <rtems/score/wkspace.h>
25
26void _Scheduler_simple_Initialize ( void )
27{
28  Scheduler_simple_Control *scheduler =
29    _Workspace_Allocate_or_fatal_error( sizeof( *scheduler ) );
30
31  _Chain_Initialize_empty( &scheduler->Ready );
32
33  _Scheduler.information = scheduler;
34}
Note: See TracBrowser for help on using the repository browser.