summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/priority.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-13 22:13:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-13 22:13:12 +0000
commit80f9d7763a0387435024c63b4602e18e8922b0d8 (patch)
treeb572802325b9bf6f28d41183cbc24e0a3f3c4a33 /cpukit/score/include/rtems/score/priority.h
parent2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-80f9d7763a0387435024c63b4602e18e8922b0d8.tar.bz2
2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h, score/include/rtems/score/priority.h: Add CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION and CONFIGURE_MAXIMUM_PRIORITY.
Diffstat (limited to 'cpukit/score/include/rtems/score/priority.h')
-rw-r--r--cpukit/score/include/rtems/score/priority.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/priority.h b/cpukit/score/include/rtems/score/priority.h
index 86c0e83de6..42f09c3755 100644
--- a/cpukit/score/include/rtems/score/priority.h
+++ b/cpukit/score/include/rtems/score/priority.h
@@ -60,13 +60,16 @@ typedef uint32_t Priority_Control;
#define PRIORITY_MINIMUM 0
#endif
-/** This defines the lowest (least important) thread priority. */
+/** This defines the default lowest (least important) thread priority. */
#if defined (CPU_PRIORITY_MAXIMUM)
-#define PRIORITY_MAXIMUM CPU_PRIORITY_MAXIMUM
+ #define PRIORITY_DEFAULT_MAXIMUM CPU_PRIORITY_MAXIMUM
#else
-#define PRIORITY_MAXIMUM 255
+ #define PRIORITY_DEFAULT_MAXIMUM 255
#endif
+/** This defines the lowest (least important) thread priority. */
+#define PRIORITY_MAXIMUM rtems_maximum_priority
+
/**
* The following record defines the information associated with
* each thread to manage its interaction with the priority bit maps.
@@ -85,6 +88,11 @@ typedef struct {
} Priority_Information;
/**
+ * This variable contains the configured number of priorities
+ */
+extern uint8_t rtems_maximum_priority;
+
+/**
* Each sixteen bit entry in this array is associated with one of
* the sixteen entries in the Priority Bit map.
*/