summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/priority.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2008-06-11 08:19:53 +0000
committerChris Johns <chrisj@rtems.org>2008-06-11 08:19:53 +0000
commita552181af9a4a31facd9ce8e3743223b1d9ff94e (patch)
tree7699d32df74946e081fa144fa2752dce78750466 /cpukit/score/include/rtems/score/priority.h
parenthris Johns <chrisj@rtems.org> (diff)
downloadrtems-a552181af9a4a31facd9ce8e3743223b1d9ff94e.tar.bz2
2008-06-10 Chris Johns <chrisj@rtems.org>
* score/include/rtems/score/priority.h: Let the CPU define the maximum and minimum priority levels to reduce the amount of memory thread chains use.
Diffstat (limited to 'cpukit/score/include/rtems/score/priority.h')
-rw-r--r--cpukit/score/include/rtems/score/priority.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/priority.h b/cpukit/score/include/rtems/score/priority.h
index bfe43e282d..86c0e83de6 100644
--- a/cpukit/score/include/rtems/score/priority.h
+++ b/cpukit/score/include/rtems/score/priority.h
@@ -40,6 +40,11 @@
extern "C" {
#endif
+/*
+ * Processor specific information.
+ */
+#include <rtems/score/cpu.h>
+
/**
* The following type defines the control block used to manage
* thread priorities.
@@ -49,9 +54,18 @@ extern "C" {
typedef uint32_t Priority_Control;
/** This defines the highest (most important) thread priority. */
+#if defined (CPU_PRIORITY_MINIMUM)
+#define PRIORITY_MINIMUM CPU_PRIORITY_MINIMUM
+#else
#define PRIORITY_MINIMUM 0
+#endif
+
/** This defines the lowest (least important) thread priority. */
+#if defined (CPU_PRIORITY_MAXIMUM)
+#define PRIORITY_MAXIMUM CPU_PRIORITY_MAXIMUM
+#else
#define PRIORITY_MAXIMUM 255
+#endif
/**
* The following record defines the information associated with