[rtems commit] mpci: Update due to API changes
Sebastian Huber
sebh at rtems.org
Tue Jan 26 09:26:17 UTC 2016
Module: rtems
Branch: master
Commit: 885c342e043f2281a0bc707cd0bc59726d1c4b79
Changeset: http://git.rtems.org/rtems/commit/?id=885c342e043f2281a0bc707cd0bc59726d1c4b79
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jan 26 10:23:22 2016 +0100
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 5652f6a..600500c 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 2b1f6ff..3a63efb 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 )
More information about the vc
mailing list