mpci: Use the first scheduler for MPCI

Avoid use of processor index 0 which may have no scheduler assigned.
This commit is contained in:
Sebastian Huber
2016-11-04 15:31:44 +01:00
parent 2f5ac5b507
commit 947814cae7
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ static void _MPCI_Create_server( void )
_Thread_Initialize(
&_Thread_Internal_information,
_MPCI_Receive_server_tcb,
_Scheduler_Get_by_CPU_index( _SMP_Get_current_processor() ),
&_Scheduler_Table[ 0 ],
NULL, /* allocate the stack */
_Stack_Minimum() +
CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK +

View File

@@ -77,7 +77,7 @@ void _Thread_MP_Handler_initialization (
proxy->Scheduler.nodes = &proxy->Scheduler_node;
_Scheduler_Node_do_initialize(
_Scheduler_Get_by_CPU_index( 0 ),
&_Scheduler_Table[ 0 ],
&proxy->Scheduler_node,
(Thread_Control *) proxy,
0