summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadmp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-08 08:44:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-08 09:34:29 +0200
commitaaaf9610db1a3cb0b01b86dc1a4f1e6b12f43126 (patch)
treec9ba25cf3c9eda0866a762c1f408783e3528fd06 /cpukit/score/src/threadmp.c
parentposix: Fix for RTEMS_DEBUG (diff)
downloadrtems-aaaf9610db1a3cb0b01b86dc1a4f1e6b12f43126.tar.bz2
score: Add debug support to red-black trees
This helps to detect double insert and extract errors.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/threadmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/score/src/threadmp.c b/cpukit/score/src/threadmp.c
index a991d03760..f5253560a6 100644
--- a/cpukit/score/src/threadmp.c
+++ b/cpukit/score/src/threadmp.c
@@ -72,6 +72,7 @@ void _Thread_MP_Handler_initialization (
proxy = (Thread_Proxy_control *) ( proxies + i * proxy_size );
_Thread_Timer_initialize( &proxy->Timer, _Per_CPU_Get_by_index( 0 ) );
+ _RBTree_Initialize_node( &proxy->Active );
proxy->Wait.spare_heads = &proxy->Thread_queue_heads[ 0 ];
_Thread_queue_Heads_initialize( proxy->Wait.spare_heads );