diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-18 11:56:42 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-19 08:34:27 +0100 |
commit | a3dd225b88eaadc2832cdb65ee9287f8aceea095 (patch) | |
tree | dbe6b3cd250722d6f6ed9259cf95f1190e5c3b38 /cpukit/score/src/threaddispatchdisablelevel.c | |
parent | score: Delete _Assert_Thread_dispatching_repressed (diff) | |
download | rtems-a3dd225b88eaadc2832cdb65ee9287f8aceea095.tar.bz2 |
score: Delete _Assert_Owner_of_giant()
Add _Debug_Is_owner_of_giant(). This makes it possible to assert the
opposite.
Diffstat (limited to 'cpukit/score/src/threaddispatchdisablelevel.c')
-rw-r--r-- | cpukit/score/src/threaddispatchdisablelevel.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/score/src/threaddispatchdisablelevel.c b/cpukit/score/src/threaddispatchdisablelevel.c index abd8c97cd5..68b4d76381 100644 --- a/cpukit/score/src/threaddispatchdisablelevel.c +++ b/cpukit/score/src/threaddispatchdisablelevel.c @@ -142,13 +142,11 @@ void _Giant_Release( void ) } #if defined( RTEMS_DEBUG ) -void _Assert_Owner_of_giant( void ) +bool _Debug_Is_owner_of_giant( void ) { Giant_Control *giant = &_Giant; - _Assert( - giant->owner_cpu == _SMP_Get_current_processor() - || !_System_state_Is_up( _System_state_Get() ) - ); + return giant->owner_cpu == _SMP_Get_current_processor() + || !_System_state_Is_up( _System_state_Get() ); } #endif |