[rtems commit] libtest: Fix T_check_task_context()

Sebastian Huber sebh at rtems.org
Sat Feb 1 13:58:05 UTC 2020


Module:    rtems
Branch:    master
Commit:    754f78faa8088a40a41b998decc01c35d18d3526
Changeset: http://git.rtems.org/rtems/commit/?id=754f78faa8088a40a41b998decc01c35d18d3526

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jan 28 13:44:14 2020 +0100

libtest: Fix T_check_task_context()

Fix T_check_task_context() in RTEMS_SMP with RTEMS_DEBUG configurations.

---

 cpukit/libtest/t-test-rtems-context.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/libtest/t-test-rtems-context.c b/cpukit/libtest/t-test-rtems-context.c
index b6b31e5..82c93f9 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);
 



More information about the vc mailing list