summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-26 10:23:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-26 10:23:22 +0100
commit885c342e043f2281a0bc707cd0bc59726d1c4b79 (patch)
tree9708e95381384481829f0e6cf100a86c92064685
parentscore: Introduce CPU_CACHE_LINE_BYTES (diff)
downloadrtems-885c342e043f2281a0bc707cd0bc59726d1c4b79.tar.bz2
mpci: Update due to API changes
Update due to API changes introduced by ccd54344d904b657123e4e4ba795a32212382be2. Update #2514.
-rw-r--r--cpukit/score/include/rtems/score/mpciimpl.h4
-rw-r--r--cpukit/score/src/mpci.c25
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 )