diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-01-28 13:44:14 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-01-28 15:09:58 +0100 |
commit | 754f78faa8088a40a41b998decc01c35d18d3526 (patch) | |
tree | f493e97a4faa58226164e3230817277f6003a297 /cpukit/libtest | |
parent | record: Fix configuration (diff) | |
download | rtems-754f78faa8088a40a41b998decc01c35d18d3526.tar.bz2 |
libtest: Fix T_check_task_context()
Fix T_check_task_context() in RTEMS_SMP with RTEMS_DEBUG configurations.
Diffstat (limited to 'cpukit/libtest')
-rw-r--r-- | cpukit/libtest/t-test-rtems-context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libtest/t-test-rtems-context.c b/cpukit/libtest/t-test-rtems-context.c index b6b31e521c..82c93f9afe 100644 --- a/cpukit/libtest/t-test-rtems-context.c +++ b/cpukit/libtest/t-test-rtems-context.c @@ -40,11 +40,11 @@ T_do_check_task_context(void) { uint32_t v; - v = _Thread_Dispatch_get_disable_level(); + v = _Per_CPU_Get_snapshot()->thread_dispatch_disable_level; T_check_true(v == 0, NULL, "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, "Wrong ISR nest level (%" PRIu32 ")", v); |