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

Sebastian Huber sebh at rtems.org
Mon Oct 8 14:22:46 UTC 2012


Module:    rtems
Branch:    master
Commit:    75025a6e961f7fed9cdfb16b8d0a273c5e50f3f5
Changeset: http://git.rtems.org/rtems/commit/?id=75025a6e961f7fed9cdfb16b8d0a273c5e50f3f5

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 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index 047cb83..666fad2 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -53,8 +53,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