Changeset 926ed2b0 in rtems
- Timestamp:
- 01/18/19 12:32:51 (5 years ago)
- Branches:
- 5, master
- Children:
- 95c1921
- Parents:
- 41310c02
- git-author:
- Sebastian Huber <sebastian.huber@…> (01/18/19 12:32:51)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (01/18/19 12:33:18)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/rtems/score/isrlock.h
r41310c02 r926ed2b0 357 357 #endif 358 358 359 /**360 * @brief Flashes an ISR lock.361 *362 * On uni-processor configurations this a simple _ISR_Local_flash(). On SMP363 * configurations this function releases an SMP lock, restores the interrupt364 * status, then disables interrupts and acquires the SMP lock again.365 *366 * This function can be used in thread and interrupt context.367 *368 * @param[in] _lock The ISR lock control.369 * @param[in] _context The local ISR lock context for an acquire and release370 * pair.371 *372 * @see _ISR_lock_ISR_disable_and_acquire() and373 * _ISR_lock_Release_and_ISR_enable().374 */375 #if defined( RTEMS_SMP )376 #define _ISR_lock_Flash( _lock, _context ) \377 _SMP_lock_Release_and_ISR_enable( \378 &( _lock )->Lock, \379 &( _context )->Lock_context \380 ); \381 _SMP_lock_ISR_disable_and_acquire( \382 &( _lock )->Lock, \383 &( _context )->Lock_context \384 )385 #else386 #define _ISR_lock_Flash( _lock, _context ) \387 _ISR_Local_flash( ( _context )->isr_level )388 #endif389 390 359 #if defined( RTEMS_PROFILING ) 391 360 #define _ISR_lock_ISR_disable_profile( _context ) \ -
testsuites/sptests/sp37/init.c
r41310c02 r926ed2b0 193 193 _ISR_lock_ISR_disable_and_acquire( &container.lock, &lock_context ); 194 194 rtems_test_assert( normal_interrupt_level != _ISR_Get_level() ); 195 _ISR_lock_Flash( &container.lock, &lock_context );196 rtems_test_assert( normal_interrupt_level != _ISR_Get_level() );197 195 _ISR_lock_Release_and_ISR_enable( &container.lock, &lock_context ); 198 196
Note: See TracChangeset
for help on using the changeset viewer.