summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/include/rtems/score/basedefs.h2
-rw-r--r--cpukit/score/src/mpci.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 086c9fd5c2..2f1c39870a 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -166,7 +166,7 @@
#endif
#define RTEMS_STATIC_ASSERT(cond, msg) \
- typedef int rtems_static_assert ## msg [(cond) ? 1 : -1]
+ typedef int rtems_static_assert_ ## msg [(cond) ? 1 : -1]
#ifndef ASM
#ifdef RTEMS_DEPRECATED_TYPES
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.
*/