From 885c342e043f2281a0bc707cd0bc59726d1c4b79 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 26 Jan 2016 10:23:22 +0100 Subject: mpci: Update due to API changes Update due to API changes introduced by ccd54344d904b657123e4e4ba795a32212382be2. Update #2514. --- cpukit/score/include/rtems/score/mpciimpl.h | 4 ++-- cpukit/score/src/mpci.c | 25 ++++++++++++------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/cpukit/score/include/rtems/score/mpciimpl.h b/cpukit/score/include/rtems/score/mpciimpl.h index 5652f6afa1..600500ceee 100644 --- a/cpukit/score/include/rtems/score/mpciimpl.h +++ b/cpukit/score/include/rtems/score/mpciimpl.h @@ -247,8 +247,8 @@ Thread_Control *_MPCI_Process_response ( * * @param[in] ignored is the thread argument. It is not used. */ -Thread _MPCI_Receive_server( - uint32_t ignored +void _MPCI_Receive_server( + Thread_Entry_numeric_type ignored ); /** diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index 2b1f6fff44..3a63efba91 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -88,6 +88,14 @@ void _MPCI_Handler_initialization( void _MPCI_Create_server( void ) { + Thread_Entry_information entry = { + .adaptor = _Thread_Entry_adaptor_numeric, + .Kinds = { + .Numeric = { + .entry = _MPCI_Receive_server + } + } + }; Objects_Name name; @@ -118,14 +126,7 @@ void _MPCI_Create_server( void ) name ); - _Thread_Start( - _MPCI_Receive_server_tcb, - THREAD_START_NUMERIC, - (void *) _MPCI_Receive_server, - NULL, - 0, - NULL - ); + _Thread_Start( _MPCI_Receive_server_tcb, &entry ); } void _MPCI_Initialization ( void ) @@ -275,8 +276,8 @@ Thread_Control *_MPCI_Process_response ( * */ -Thread _MPCI_Receive_server( - uint32_t ignored +void _MPCI_Receive_server( + Thread_Entry_numeric_type ignored ) { @@ -321,11 +322,9 @@ Thread _MPCI_Receive_server( INTERNAL_ERROR_BAD_PACKET ); - (*the_function)( the_packet ); + (*the_function)( the_packet ); } } - - return 0; /* unreached - only to remove warnings */ } void _MPCI_Announce ( void ) -- cgit v1.2.3