diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-29 17:43:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-01-02 09:26:59 +0100 |
commit | 453bb4b64225afd3040badb632f7b4adedc816cd (patch) | |
tree | 0af90349c5b4a533b55b04205d48b41da8022c94 /cpukit/rtems/src/taskmp.c | |
parent | score: Fix objects node initialization (diff) | |
download | rtems-453bb4b64225afd3040badb632f7b4adedc816cd.tar.bz2 |
rtems: Fix MPCI initialization
Update #2408.
Diffstat (limited to 'cpukit/rtems/src/taskmp.c')
-rw-r--r-- | cpukit/rtems/src/taskmp.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c index e3742c528d..d929c350b2 100644 --- a/cpukit/rtems/src/taskmp.c +++ b/cpukit/rtems/src/taskmp.c @@ -24,6 +24,7 @@ #include <rtems/score/statesimpl.h> #include <rtems/score/threadimpl.h> #include <rtems/score/threadqimpl.h> +#include <rtems/sysinit.h> /** * The following data structure defines the packet used to perform @@ -221,7 +222,7 @@ static void _RTEMS_tasks_MP_Send_response_packet ( * */ -void _RTEMS_tasks_MP_Process_packet ( +static void _RTEMS_tasks_MP_Process_packet ( rtems_packet_prefix *the_packet_prefix ) { @@ -312,20 +313,16 @@ void _RTEMS_tasks_MP_Process_packet ( } } -/* - * _RTEMS_tasks_MP_Send_object_was_deleted - * - * This routine is not neededby the Tasks since a task - * cannot be globally deleted. - * - */ - -/* - * _RTEMS_tasks_MP_Send_extract_proxy - * - * This routine is not neededby the Tasks since a task - * cannot be globally deleted. - * - */ +static void _RTEMS_tasks_MP_Initialize( void ) +{ + _MPCI_Register_packet_processor( + MP_PACKET_TASKS, + _RTEMS_tasks_MP_Process_packet + ); +} -/* end of file */ +RTEMS_SYSINIT_ITEM( + _RTEMS_tasks_MP_Initialize, + RTEMS_SYSINIT_CLASSIC_TASKS_MP, + RTEMS_SYSINIT_ORDER_MIDDLE +); |