From 1215fd4d9426a59d568560e9a485628560363133 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Aug 2013 15:14:33 +0200 Subject: sapi: SMP support for chains Add ISR lock to chain control for proper SMP protection. Replace rtems_chain_extract() with rtems_chain_explicit_extract() and rtems_chain_insert() with rtems_chain_explicit_insert() on SMP configurations. Use rtems_chain_explicit_extract() and rtems_chain_explicit_insert() to provide SMP support. --- testsuites/libtests/block06/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/libtests/block06') diff --git a/testsuites/libtests/block06/init.c b/testsuites/libtests/block06/init.c index 6352aba933..e51bf2791c 100644 --- a/testsuites/libtests/block06/init.c +++ b/testsuites/libtests/block06/init.c @@ -1130,14 +1130,14 @@ bdbuf_tests_task_0_test_8 (bdbuf_task_control* tc) bd = (rtems_bdbuf_buffer*) node; pnode = node->previous; - rtems_chain_extract (node); + rtems_chain_explicit_extract (&buffers, node); node = pnode; bdbuf_test_printf ("%s: rtems_bdbuf_release_modified[4]: ", tc->name); passed = bdbuf_test_print_sc (rtems_bdbuf_release_modified (bd), true); bd = (rtems_bdbuf_buffer*) node; pnode = node->previous; - rtems_chain_extract (node); + rtems_chain_explicit_extract (&buffers, node); node = pnode; bdbuf_test_printf ("%s: rtems_bdbuf_release_modified[3]: ", tc->name); passed = bdbuf_test_print_sc (rtems_bdbuf_release_modified (bd), true); -- cgit v1.2.3