diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-19 10:27:08 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-20 08:23:26 +0200 |
commit | 1981b4697e43695397cf01255805d267e0e55ab1 (patch) | |
tree | 64ee15abef295cac9348e403c3b6ca41349b3731 /testsuites | |
parent | score: Refactor SMP cache manager support (diff) | |
download | rtems-1981b4697e43695397cf01255805d267e0e55ab1.tar.bz2 |
score: Add _ISR_lock_ISR_disable/enable()
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/sp37/init.c | 6 |
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 ); |