28 #undef __STRICT_ANSI__ 30 #include <rtems/test.h> 46 T_initialize_runner_properties(
void)
52 T_quiet_rsc_success(sc);
57 T_quiet_rsc_success(sc);
61 T_do_check_task_context(
void)
70 v = _Per_CPU_Get_snapshot()->thread_dispatch_disable_level;
71 T_check(&T_special, v == 0,
72 "Wrong thread dispatch disabled level (%" PRIu32
")", v);
74 v = _Per_CPU_Get_snapshot()->isr_nest_level;
75 T_check(&T_special, v == 0,
76 "Wrong ISR nest level (%" PRIu32
")", v);
79 T_check(&T_special, v == 0,
80 "Wrong ISR level (%" PRIu32
")", v);
85 T_quiet_rsc_success(sc);
86 T_check(&T_special,
id == T_runner_scheduler,
87 "Wrong runner scheduler, expected ID %08" PRIx32
", actual ID %08" 88 PRIx32, T_runner_scheduler,
id);
94 T_quiet_rsc_success(sc);
95 T_check(&T_special, prio == T_runner_priority,
96 "Wrong runner priority, expected %" PRIu32
", actual %" 97 PRIu32, T_runner_priority, prio);
101 T_check_task_context(T_event event,
const char *name)
106 case T_EVENT_RUN_INITIALIZE_LATE:
107 T_initialize_runner_properties();
109 case T_EVENT_CASE_END:
110 T_do_check_task_context();
#define RTEMS_CURRENT_PRIORITY
This constant is passed to {set-priority:/name}() when the caller wants to obtain the current priorit...
Constants and Structures Related with Thread Dispatch.
#define _ISR_Get_level()
Return current interrupt level.
uint32_t rtems_task_priority
%
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
rtems_status_code rtems_task_set_priority(rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority)
%
This header file defines the RTEMS Classic API.
rtems_status_code rtems_task_get_scheduler(rtems_id task_id, rtems_id *scheduler_id)
%
Objects_Id rtems_id
Values of this type identify an RTEMS object.