summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/mpci.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-09-09 10:57:58 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-09-09 10:57:58 +0000
commitd689de0b3ce1a758d8b46fb5ea79758a3d76a9ff (patch)
tree9a6a36758d36232ac855df339567a3dd93189240 /cpukit/score/src/mpci.c
parent2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-d689de0b3ce1a758d8b46fb5ea79758a3d76a9ff.tar.bz2
2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/basedefs.h: Typo. * score/src/mpci.c, rtems/src/eventmp.c, rtems/src/msgmp.c, rtems/src/partmp.c, rtems/src/regionmp.c, rtems/src/semmp.c, rtems/src/signalmp.c, rtems/src/taskmp.c: Use RTEMS_STATIC_ASSERT() to ensure that the packet size is small enough.
Diffstat (limited to 'cpukit/score/src/mpci.c')
-rw-r--r--cpukit/score/src/mpci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c
index 5a9c4d136c..28e5a5232c 100644
--- a/cpukit/score/src/mpci.c
+++ b/cpukit/score/src/mpci.c
@@ -34,6 +34,11 @@
#include <rtems/score/coresem.h>
#include <rtems/config.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(MPCI_Internal_packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ MPCI_Internal_packet
+);
+
/**
* This is the core semaphore which the MPCI Receive Server blocks on.
*/