diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-13 22:13:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-13 22:13:12 +0000 |
commit | 80f9d7763a0387435024c63b4602e18e8922b0d8 (patch) | |
tree | b572802325b9bf6f28d41183cbc24e0a3f3c4a33 /cpukit/score/include/rtems/score/priority.h | |
parent | 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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.h | 14 |
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. */ |