forked from Imagelibrary/rtems
libtest: Fix T_check_task_context()
Fix T_check_task_context() in RTEMS_SMP with RTEMS_DEBUG configurations.
This commit is contained in:
@@ -40,11 +40,11 @@ T_do_check_task_context(void)
|
|||||||
{
|
{
|
||||||
uint32_t v;
|
uint32_t v;
|
||||||
|
|
||||||
v = _Thread_Dispatch_get_disable_level();
|
v = _Per_CPU_Get_snapshot()->thread_dispatch_disable_level;
|
||||||
T_check_true(v == 0, NULL,
|
T_check_true(v == 0, NULL,
|
||||||
"Wrong thread dispatch disabled level (%" PRIu32 ")", v);
|
"Wrong thread dispatch disabled level (%" PRIu32 ")", v);
|
||||||
|
|
||||||
v = _ISR_Nest_level;
|
v = _Per_CPU_Get_snapshot()->isr_nest_level;
|
||||||
T_check_true(v == 0, NULL,
|
T_check_true(v == 0, NULL,
|
||||||
"Wrong ISR nest level (%" PRIu32 ")", v);
|
"Wrong ISR nest level (%" PRIu32 ")", v);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user