summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-18 20:49:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-18 20:49:36 +0000
commit857c52f90ebef72ba09bed0eedf17968a1bc37bb (patch)
treeed698d5d1b53146b585f8cee07fae5fc8f98307c
parentmodified declaration of CORE_message_queue_Buffer_control to avoid use (diff)
downloadrtems-857c52f90ebef72ba09bed0eedf17968a1bc37bb.tar.bz2
MP_PACKET_MINIMUN_HETERO_CONVERSION definition changed to use sizeof
rather than hardcoded 4 to be compatible with CPUs with 64-bit ints
-rw-r--r--c/src/exec/score/headers/mppkt.h3
-rw-r--r--c/src/exec/score/include/rtems/score/mppkt.h3
-rw-r--r--cpukit/score/include/rtems/score/mppkt.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/c/src/exec/score/headers/mppkt.h b/c/src/exec/score/headers/mppkt.h
index 0c651bc4e8..3bd4282d30 100644
--- a/c/src/exec/score/headers/mppkt.h
+++ b/c/src/exec/score/headers/mppkt.h
@@ -86,7 +86,8 @@ typedef struct {
* may a user message buffer which is not automatically endian swapped.
*/
-#define MP_PACKET_MINIMUN_HETERO_CONVERSION ( sizeof( MP_packet_Prefix ) / 4 )
+#define MP_PACKET_MINIMUN_HETERO_CONVERSION \
+ ( sizeof( MP_packet_Prefix ) / sizeof( unsigned32 ) )
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/mppkt.inl>
diff --git a/c/src/exec/score/include/rtems/score/mppkt.h b/c/src/exec/score/include/rtems/score/mppkt.h
index 0c651bc4e8..3bd4282d30 100644
--- a/c/src/exec/score/include/rtems/score/mppkt.h
+++ b/c/src/exec/score/include/rtems/score/mppkt.h
@@ -86,7 +86,8 @@ typedef struct {
* may a user message buffer which is not automatically endian swapped.
*/
-#define MP_PACKET_MINIMUN_HETERO_CONVERSION ( sizeof( MP_packet_Prefix ) / 4 )
+#define MP_PACKET_MINIMUN_HETERO_CONVERSION \
+ ( sizeof( MP_packet_Prefix ) / sizeof( unsigned32 ) )
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/mppkt.inl>
diff --git a/cpukit/score/include/rtems/score/mppkt.h b/cpukit/score/include/rtems/score/mppkt.h
index 0c651bc4e8..3bd4282d30 100644
--- a/cpukit/score/include/rtems/score/mppkt.h
+++ b/cpukit/score/include/rtems/score/mppkt.h
@@ -86,7 +86,8 @@ typedef struct {
* may a user message buffer which is not automatically endian swapped.
*/
-#define MP_PACKET_MINIMUN_HETERO_CONVERSION ( sizeof( MP_packet_Prefix ) / 4 )
+#define MP_PACKET_MINIMUN_HETERO_CONVERSION \
+ ( sizeof( MP_packet_Prefix ) / sizeof( unsigned32 ) )
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/mppkt.inl>