[PATCH 5/9] rtems: PR1844: Fix MP process packet size

Gedare Bloom gedare at rtems.org
Thu Jan 11 18:13:07 UTC 2018


From: Sebastian Huber <sebastian.huber at embedded-brains.de>

---
 cpukit/rtems/src/msgmp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index 9f033a8..481bc3a 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -51,8 +51,8 @@ void _Message_queue_MP_Send_process_packet (
 
       the_packet                    = _Message_queue_MP_Get_packet();
       the_packet->Prefix.the_class  = MP_PACKET_MESSAGE_QUEUE;
-      the_packet->Prefix.length     = sizeof ( Message_queue_MP_Packet );
-      the_packet->Prefix.to_convert = sizeof ( Message_queue_MP_Packet );
+      the_packet->Prefix.length     = MESSAGE_QUEUE_MP_PACKET_SIZE;
+      the_packet->Prefix.to_convert = MESSAGE_QUEUE_MP_PACKET_SIZE;
       the_packet->operation         = operation;
       the_packet->Prefix.id         = message_queue_id;
       the_packet->name              = name;
-- 
2.7.4




More information about the devel mailing list