diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-23 10:33:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-28 06:19:52 +0200 |
commit | 69b4fe592fb26f3421add3c564677d78022bcf5a (patch) | |
tree | c77f799fdd0fc92795b98820009896c35b3dde97 /cpukit/rtems/src/msgmp.c | |
parent | score: Improve _CORE_message_queue_Initialize() (diff) | |
download | rtems-69b4fe592fb26f3421add3c564677d78022bcf5a.tar.bz2 |
score: Simplify CORE_message_queue_Buffer
Merge CORE_message_queue_Buffer structure into
CORE_message_queue_Buffer_control.
Use a zero-length array for the actual message buffer. This reduces the
structure size on all targets.
Update #4007.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/src/msgmp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c index f49c254fbd..ae7c9802e2 100644 --- a/cpukit/rtems/src/msgmp.c +++ b/cpukit/rtems/src/msgmp.c @@ -151,10 +151,10 @@ static rtems_status_code _Message_queue_MP_Send_request_packet ( */ if (buffer) { - the_packet->Buffer.size = *size_p; + the_packet->size = *size_p; _CORE_message_queue_Copy_buffer( buffer, - the_packet->Buffer.buffer, + the_packet->buffer, *size_p ); } @@ -407,7 +407,7 @@ static void _Message_queue_MP_Process_packet ( the_packet->Prefix.return_code = rtems_message_queue_receive( the_packet->Prefix.id, - the_packet->Buffer.buffer, + the_packet->buffer, &the_packet->size, the_packet->option_set, the_packet->Prefix.timeout @@ -430,7 +430,7 @@ static void _Message_queue_MP_Process_packet ( the_packet->size; _CORE_message_queue_Copy_buffer( - the_packet->Buffer.buffer, + the_packet->buffer, the_thread->Wait.return_argument_second.mutable_object, the_packet->size ); @@ -443,8 +443,8 @@ static void _Message_queue_MP_Process_packet ( the_packet->Prefix.return_code = rtems_message_queue_send( the_packet->Prefix.id, - the_packet->Buffer.buffer, - the_packet->Buffer.size + the_packet->buffer, + the_packet->size ); _Message_queue_MP_Send_response_packet( @@ -466,8 +466,8 @@ static void _Message_queue_MP_Process_packet ( the_packet->Prefix.return_code = rtems_message_queue_urgent( the_packet->Prefix.id, - the_packet->Buffer.buffer, - the_packet->Buffer.size + the_packet->buffer, + the_packet->size ); _Message_queue_MP_Send_response_packet( @@ -481,8 +481,8 @@ static void _Message_queue_MP_Process_packet ( the_packet->Prefix.return_code = rtems_message_queue_broadcast( the_packet->Prefix.id, - the_packet->Buffer.buffer, - the_packet->Buffer.size, + the_packet->buffer, + the_packet->size, &the_packet->count ); |