summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/msg.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-17 16:01:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-17 16:01:03 +0000
commitf4a8ee1c55788aeb053ede7571b07906a9847a45 (patch)
tree7417825a9a351aaf100374b08d314756523bef5f /cpukit/rtems/src/msg.c
parentSuggested rephrasing of inline versus macros option by Chris Johns (diff)
downloadrtems-f4a8ee1c55788aeb053ede7571b07906a9847a45.tar.bz2
Unlimited objects patch from Chris Johns <ccj@acm.org>. Email follows:
First, the unlimited patch. I have compiled the unlmited patch for the Linux posix BSP only and it seems to work cleanly. I would like a really major application run on this change before commiting as the changes are very core and significant. I am currently building all the tests to run. I have no targets suitable to test on at the moment. I have tested the patch for inline functions and macros. Turning macros on has found some core bugs. I have fixed these but have not run all the tests. Please review the patch for these changes. They are: 1) The conditional compilation for MP support broke the core messages code. You cannot embed a conditional macro in another macro. The Send and Urgent Send calls are macros. 2) User extensions handler initialisation now has two parameters. I have updated the macros to support the extra parameter. The patch also contains the gcc-target-default.cfg fix required to build the kernel. More of a by product than a fix for you.
Diffstat (limited to 'cpukit/rtems/src/msg.c')
-rw-r--r--cpukit/rtems/src/msg.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c
index 2768050d8f..b0222601f0 100644
--- a/cpukit/rtems/src/msg.c
+++ b/cpukit/rtems/src/msg.c
@@ -33,6 +33,20 @@
/*PAGE
*
+ * _MESSAGE_QUEUE_CORE_MESSAGE_QUEUE_MP_SUPPORT
+ *
+ * Condition support for the MP. Helps the macro build.
+ *
+ */
+
+#if defined(RTEMS_MULTIPROCESSING)
+#define _MESSAGE_QUEUE_CORE_MESSAGE_QUEUE_MP_SUPPORT _Message_queue_Core_message_queue_mp_support
+#else
+#define _MESSAGE_QUEUE_CORE_MESSAGE_QUEUE_MP_SUPPORT NULL
+#endif
+
+/*PAGE
+ *
* _Message_queue_Manager_initialization
*
* This routine initializes all message queue manager related
@@ -450,11 +464,7 @@ rtems_status_code rtems_message_queue_broadcast(
buffer,
size,
id,
-#if defined(RTEMS_MULTIPROCESSING)
- _Message_queue_Core_message_queue_mp_support,
-#else
- NULL,
-#endif
+ _MESSAGE_QUEUE_CORE_MESSAGE_QUEUE_MP_SUPPORT,
count
);
@@ -718,11 +728,7 @@ rtems_status_code _Message_queue_Submit(
buffer,
size,
id,
-#if defined(RTEMS_MULTIPROCESSING)
- _Message_queue_Core_message_queue_mp_support
-#else
- NULL
-#endif
+ _MESSAGE_QUEUE_CORE_MESSAGE_QUEUE_MP_SUPPORT
);
break;
case MESSAGE_QUEUE_URGENT_REQUEST:
@@ -731,11 +737,7 @@ rtems_status_code _Message_queue_Submit(
buffer,
size,
id,
-#if defined(RTEMS_MULTIPROCESSING)
- _Message_queue_Core_message_queue_mp_support
-#else
- NULL
-#endif
+ _MESSAGE_QUEUE_CORE_MESSAGE_QUEUE_MP_SUPPORT
);
break;
default: