* tm26/task1.c, tm27/task1.c: Do not violate chain API.
This commit is contained in:
Sebastian Huber
2010-10-25 07:27:51 +00:00
parent a5ba675808
commit 0e34d4397f
3 changed files with 11 additions and 7 deletions
+4
View File
@@ -1,3 +1,7 @@
2010-10-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* tm26/task1.c, tm27/task1.c: Do not violate chain API.
2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
PR 1599/cpukit
+5 -5
View File
@@ -242,7 +242,7 @@ rtems_task Middle_task(
Middle_tcb = _Thread_Executing;
_Thread_Executing =
(Thread_Control *) _Thread_Ready_chain[LOW_PRIORITY].first;
(Thread_Control *) _Chain_First(&_Thread_Ready_chain[LOW_PRIORITY]);
/* do not force context switch */
@@ -279,7 +279,7 @@ rtems_task Low_task(
context_switch_another_task_time = benchmark_timer_read();
_Thread_Executing =
(Thread_Control *) _Thread_Ready_chain[FP1_PRIORITY].first;
(Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP1_PRIORITY]);
/* do not force context switch */
@@ -306,7 +306,7 @@ rtems_task Floating_point_task_1(
executing = _Thread_Executing;
_Thread_Executing =
(Thread_Control *) _Thread_Ready_chain[FP2_PRIORITY].first;
(Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP2_PRIORITY]);
/* do not force context switch */
@@ -329,7 +329,7 @@ rtems_task Floating_point_task_1(
executing = _Thread_Executing;
_Thread_Executing =
(Thread_Control *) _Thread_Ready_chain[FP2_PRIORITY].first;
(Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP2_PRIORITY]);
/* do not force context switch */
@@ -358,7 +358,7 @@ rtems_task Floating_point_task_2(
executing = _Thread_Executing;
_Thread_Executing =
(Thread_Control *) _Thread_Ready_chain[FP1_PRIORITY].first;
(Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP1_PRIORITY]);
FP_LOAD( 1.0 );
+2 -2
View File
@@ -170,7 +170,7 @@ rtems_task Task_1(
_Thread_Dispatch_disable_level = 0;
_Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[LOW_PRIORITY].last;
_Thread_Heir = (rtems_tcb *) _Chain_Last(&_Thread_Ready_chain[LOW_PRIORITY]);
_Thread_Dispatch_necessary = 1;
@@ -227,7 +227,7 @@ rtems_task Task_2(
_Thread_Dispatch_disable_level = 0;
_Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[LOW_PRIORITY].first;
_Thread_Heir = (rtems_tcb *) _Chain_First(&_Thread_Ready_chain[LOW_PRIORITY]);
_Thread_Dispatch_necessary = 1;