summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2000-01-05 17:20:07 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2000-01-05 17:20:07 +0000
commitb302d527c76e9b3442b396d7413a2e5d24877546 (patch)
treeb3fe365de44ad3ba1532bf525ba56850a5133522
parentAdded the recording of the submit type. (diff)
downloadrtems-b302d527c76e9b3442b396d7413a2e5d24877546.tar.bz2
+ Added return priority from message seize.
+ Changed priority to be based off of min and max int.
-rw-r--r--c/src/exec/score/include/rtems/score/coremsg.h21
-rw-r--r--cpukit/score/include/rtems/score/coremsg.h21
2 files changed, 22 insertions, 20 deletions
diff --git a/c/src/exec/score/include/rtems/score/coremsg.h b/c/src/exec/score/include/rtems/score/coremsg.h
index 71f36d525e..6ffedee0af 100644
--- a/c/src/exec/score/include/rtems/score/coremsg.h
+++ b/c/src/exec/score/include/rtems/score/coremsg.h
@@ -20,6 +20,7 @@
extern "C" {
#endif
+#include <limits.h>
#include <rtems/score/thread.h>
#include <rtems/score/threadq.h>
#include <rtems/score/priority.h>
@@ -76,12 +77,11 @@ typedef enum {
* NOTE: All other values are message priorities. Numerically smaller
* priorities indicate higher priority messages.
*
- * XXX these constants should be changed to be compiler dependent.
*/
-
-#define CORE_MESSAGE_QUEUE_SEND_REQUEST 0x7fffffff
-#define CORE_MESSAGE_QUEUE_URGENT_REQUEST -(0x7fffffff)
+#define CORE_MESSAGE_QUEUE_SEND_REQUEST INT_MAX
+#define CORE_MESSAGE_QUEUE_URGENT_REQUEST INT_MIN
+
typedef int CORE_message_queue_Submit_types;
/*
@@ -251,12 +251,13 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
*/
void _CORE_message_queue_Seize(
- CORE_message_queue_Control *the_message_queue,
- Objects_Id id,
- void *buffer,
- unsigned32 *size,
- boolean wait,
- Watchdog_Interval timeout
+ CORE_message_queue_Control *the_message_queue,
+ Objects_Id id,
+ void *buffer,
+ unsigned32 *size,
+ boolean wait,
+ CORE_message_queue_Submit_types *priority,
+ Watchdog_Interval timeout
);
#ifndef __RTEMS_APPLICATION__
diff --git a/cpukit/score/include/rtems/score/coremsg.h b/cpukit/score/include/rtems/score/coremsg.h
index 71f36d525e..6ffedee0af 100644
--- a/cpukit/score/include/rtems/score/coremsg.h
+++ b/cpukit/score/include/rtems/score/coremsg.h
@@ -20,6 +20,7 @@
extern "C" {
#endif
+#include <limits.h>
#include <rtems/score/thread.h>
#include <rtems/score/threadq.h>
#include <rtems/score/priority.h>
@@ -76,12 +77,11 @@ typedef enum {
* NOTE: All other values are message priorities. Numerically smaller
* priorities indicate higher priority messages.
*
- * XXX these constants should be changed to be compiler dependent.
*/
-
-#define CORE_MESSAGE_QUEUE_SEND_REQUEST 0x7fffffff
-#define CORE_MESSAGE_QUEUE_URGENT_REQUEST -(0x7fffffff)
+#define CORE_MESSAGE_QUEUE_SEND_REQUEST INT_MAX
+#define CORE_MESSAGE_QUEUE_URGENT_REQUEST INT_MIN
+
typedef int CORE_message_queue_Submit_types;
/*
@@ -251,12 +251,13 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
*/
void _CORE_message_queue_Seize(
- CORE_message_queue_Control *the_message_queue,
- Objects_Id id,
- void *buffer,
- unsigned32 *size,
- boolean wait,
- Watchdog_Interval timeout
+ CORE_message_queue_Control *the_message_queue,
+ Objects_Id id,
+ void *buffer,
+ unsigned32 *size,
+ boolean wait,
+ CORE_message_queue_Submit_types *priority,
+ Watchdog_Interval timeout
);
#ifndef __RTEMS_APPLICATION__