summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/msgmp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-23 10:33:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-28 06:19:52 +0200
commit69b4fe592fb26f3421add3c564677d78022bcf5a (patch)
treec77f799fdd0fc92795b98820009896c35b3dde97 /cpukit/include/rtems/rtems/msgmp.h
parentscore: Improve _CORE_message_queue_Initialize() (diff)
downloadrtems-69b4fe592fb26f3421add3c564677d78022bcf5a.tar.bz2
score: Simplify CORE_message_queue_Buffer
Merge CORE_message_queue_Buffer structure into CORE_message_queue_Buffer_control. Use a zero-length array for the actual message buffer. This reduces the structure size on all targets. Update #4007.
Diffstat (limited to 'cpukit/include/rtems/rtems/msgmp.h')
-rw-r--r--cpukit/include/rtems/rtems/msgmp.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/include/rtems/rtems/msgmp.h b/cpukit/include/rtems/rtems/msgmp.h
index 6b08c86971..8638e9748e 100644
--- a/cpukit/include/rtems/rtems/msgmp.h
+++ b/cpukit/include/rtems/rtems/msgmp.h
@@ -71,13 +71,12 @@ typedef struct {
rtems_option option_set;
Objects_Id proxy_id;
uint32_t count;
- size_t size;
- uint32_t pad0;
- CORE_message_queue_Buffer Buffer;
+ uint32_t size;
+ uint32_t buffer[ RTEMS_ZERO_LENGTH_ARRAY ];
} Message_queue_MP_Packet;
#define MESSAGE_QUEUE_MP_PACKET_SIZE \
- offsetof(Message_queue_MP_Packet, Buffer.buffer)
+ offsetof(Message_queue_MP_Packet, buffer)
RTEMS_INLINE_ROUTINE bool _Message_queue_MP_Is_remote( Objects_Id id )
{