4.115
Last change
on this file since f068384e was
f068384e,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/24/13 at 10:03:31
|
score: Create schedulerpriority impl header
Move implementation specific parts of schedulerpriority.h and
schedulerpriority.inl into new header file schedulerpriorityimpl.h. The
schedulerpriority.h contains now only the application visible API.
Add missing includes. Remove superfluous includes.
Move declaration of _Priority_Bit_map to prioritybitmap.inl since this
variable is used only here.
Remove second declaration of _Priority_Major_bit_map.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
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.com/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 | |
---|
26 | void * _Scheduler_simple_Allocate( |
---|
27 | Thread_Control *the_thread |
---|
28 | ) |
---|
29 | { |
---|
30 | return (void*)-1; /* maybe pick an appropriate poison value */ |
---|
31 | } |
---|
32 | |
---|
33 | void _Scheduler_simple_Update( |
---|
34 | Thread_Control *the_thread |
---|
35 | ) |
---|
36 | { |
---|
37 | } |
---|
38 | |
---|
39 | void _Scheduler_simple_Free( |
---|
40 | Thread_Control *the_thread |
---|
41 | ) |
---|
42 | { |
---|
43 | } |
---|
44 | |
---|
45 | void _Scheduler_simple_Initialize ( void ) |
---|
46 | { |
---|
47 | void *f; |
---|
48 | |
---|
49 | /* |
---|
50 | * Initialize Ready Queue |
---|
51 | */ |
---|
52 | |
---|
53 | /* allocate ready queue structures */ |
---|
54 | f = _Workspace_Allocate_or_fatal_error( sizeof(Chain_Control) ); |
---|
55 | _Scheduler.information = f; |
---|
56 | |
---|
57 | /* initialize ready queue structure */ |
---|
58 | _Chain_Initialize_empty( (Chain_Control *)f ); |
---|
59 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.