score: Add and use PRIORITY_PSEUDO_ISR

This commit is contained in:
Sebastian Huber
2015-03-05 08:11:27 +01:00
parent 77510c72dc
commit 81b03c62a6
3 changed files with 9 additions and 2 deletions

View File

@@ -481,7 +481,7 @@ rtems_status_code rtems_timer_initiate_server(
if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
return RTEMS_INVALID_PRIORITY; return RTEMS_INVALID_PRIORITY;
_priority = 0; _priority = PRIORITY_PSEUDO_ISR;
} }
/* /*

View File

@@ -58,6 +58,13 @@ typedef uint32_t Priority_Control;
/** This defines the highest (most important) thread priority. */ /** This defines the highest (most important) thread priority. */
#define PRIORITY_MINIMUM 0 #define PRIORITY_MINIMUM 0
/**
* @brief This defines the priority of pseudo-ISR threads.
*
* Examples are the MPCI and timer server threads.
*/
#define PRIORITY_PSEUDO_ISR PRIORITY_MINIMUM
/** This defines the default lowest (least important) thread priority. */ /** This defines the default lowest (least important) thread priority. */
#if defined (CPU_PRIORITY_MAXIMUM) #if defined (CPU_PRIORITY_MAXIMUM)
#define PRIORITY_DEFAULT_MAXIMUM CPU_PRIORITY_MAXIMUM #define PRIORITY_DEFAULT_MAXIMUM CPU_PRIORITY_MAXIMUM

View File

@@ -112,7 +112,7 @@ void _MPCI_Create_server( void )
CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK + CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK +
_Configuration_MP_table->extra_mpci_receive_server_stack, _Configuration_MP_table->extra_mpci_receive_server_stack,
CPU_ALL_TASKS_ARE_FP, CPU_ALL_TASKS_ARE_FP,
PRIORITY_MINIMUM, PRIORITY_PSEUDO_ISR,
false, /* no preempt */ false, /* no preempt */
THREAD_CPU_BUDGET_ALGORITHM_NONE, THREAD_CPU_BUDGET_ALGORITHM_NONE,
NULL, /* no budget algorithm callout */ NULL, /* no budget algorithm callout */