From 16832b0d9e1f6448a57b6f5f2909cff7ad360706 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 29 Mar 2016 12:06:55 +0200 Subject: score: Fix multiprocessing thread proxies We must provide thread queue heads for the thread wait information for each thread proxy (thread queue heads were introduced by d7665823b208daefb6855591d808e1f3075cedcb). The thread proxy must be allocated before the enqueue operation. --- cpukit/sapi/include/confdefs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/sapi/include/confdefs.h') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 89beb2304b..228a9dcf49 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -1899,7 +1899,9 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #define CONFIGURE_MP_MAXIMUM_PROXIES 32 #endif #define CONFIGURE_MEMORY_FOR_PROXIES(_proxies) \ - _Configure_Object_RAM((_proxies) + 1, sizeof(Thread_Proxy_control) ) + _Configure_From_workspace((_proxies) \ + * (sizeof(Thread_Proxy_control) \ + + THREAD_QUEUE_HEADS_SIZE(CONFIGURE_SCHEDULER_COUNT))) #ifndef CONFIGURE_MP_MPCI_TABLE_POINTER #include -- cgit v1.2.3