mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-27 20:57:36 +08:00
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.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2008-06-06 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2008-06-06 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* rtems/include/rtems.h, rtems/include/rtems/rtems/clock.h,
|
* rtems/include/rtems.h, rtems/include/rtems/rtems/clock.h,
|
||||||
|
|||||||
@@ -40,6 +40,11 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Processor specific information.
|
||||||
|
*/
|
||||||
|
#include <rtems/score/cpu.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The following type defines the control block used to manage
|
* The following type defines the control block used to manage
|
||||||
* thread priorities.
|
* thread priorities.
|
||||||
@@ -49,9 +54,18 @@ extern "C" {
|
|||||||
typedef uint32_t Priority_Control;
|
typedef uint32_t Priority_Control;
|
||||||
|
|
||||||
/** This defines the highest (most important) thread priority. */
|
/** This defines the highest (most important) thread priority. */
|
||||||
|
#if defined (CPU_PRIORITY_MINIMUM)
|
||||||
|
#define PRIORITY_MINIMUM CPU_PRIORITY_MINIMUM
|
||||||
|
#else
|
||||||
#define PRIORITY_MINIMUM 0
|
#define PRIORITY_MINIMUM 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** This defines the lowest (least important) thread priority. */
|
/** This defines the lowest (least important) thread priority. */
|
||||||
|
#if defined (CPU_PRIORITY_MAXIMUM)
|
||||||
|
#define PRIORITY_MAXIMUM CPU_PRIORITY_MAXIMUM
|
||||||
|
#else
|
||||||
#define PRIORITY_MAXIMUM 255
|
#define PRIORITY_MAXIMUM 255
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The following record defines the information associated with
|
* The following record defines the information associated with
|
||||||
|
|||||||
Reference in New Issue
Block a user