mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 23:40:15 +00:00
MP_PACKET_MINIMUN_HETERO_CONVERSION definition changed to use sizeof
rather than hardcoded 4 to be compatible with CPUs with 64-bit ints
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user