summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-19 10:27:08 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-20 08:23:26 +0200
commit1981b4697e43695397cf01255805d267e0e55ab1 (patch)
tree64ee15abef295cac9348e403c3b6ca41349b3731 /testsuites/sptests
parentscore: Refactor SMP cache manager support (diff)
downloadrtems-1981b4697e43695397cf01255805d267e0e55ab1.tar.bz2
score: Add _ISR_lock_ISR_disable/enable()
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/sp37/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index e8c415d5a7..aaaf68426b 100644
--- a/testsuites/sptests/sp37/init.c
+++ b/testsuites/sptests/sp37/init.c
@@ -185,6 +185,12 @@ static void test_isr_locks( void )
rtems_test_assert( normal_interrupt_level == _ISR_Get_level() );
+ _ISR_lock_ISR_disable( &lock_context );
+ rtems_test_assert( normal_interrupt_level != _ISR_Get_level() );
+ _ISR_lock_ISR_enable( &lock_context );
+
+ rtems_test_assert( normal_interrupt_level == _ISR_Get_level() );
+
_ISR_lock_Acquire( &lock, &lock_context );
rtems_test_assert( normal_interrupt_level == _ISR_Get_level() );
_ISR_lock_Release( &lock, &lock_context );