diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-26 15:14:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-30 11:16:28 +0200 |
commit | 1215fd4d9426a59d568560e9a485628560363133 (patch) | |
tree | 1fa51c2c86080bdbf80d20386732f34f08e708be /testsuites/libtests/block06 | |
parent | smptests/smpatomic08: Fix race conditions (diff) | |
download | rtems-1215fd4d9426a59d568560e9a485628560363133.tar.bz2 |
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.
Diffstat (limited to 'testsuites/libtests/block06')
-rw-r--r-- | testsuites/libtests/block06/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |