[rtems commit] rtems: PR1844: Fix MP process packet size

Gedare Bloom gedare at rtems.org
Fri Jan 12 21:01:25 UTC 2018


Module:    rtems
Branch:    4.10
Commit:    b6b8cd7fb12adecc81c43f92354c59ec197f1458
Changeset: http://git.rtems.org/rtems/commit/?id=b6b8cd7fb12adecc81c43f92354c59ec197f1458

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Oct  8 16:19:44 2012 +0200

rtems: PR1844: Fix MP process packet size

---

 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;



More information about the vc mailing list