On 12/12/16 22:26, Chris Johns wrote:
On 13/12/2016 01:03, Christian Mauderer wrote:
From: Christian Mauderer <christian.maude...@embedded-brains.de>

---
  cpukit/score/include/rtems/score/threaddispatch.h | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/cpukit/score/include/rtems/score/threaddispatch.h b/cpukit/score/include/rtems/score/threaddispatch.h
index 0238f8f..63eb4c6 100644
--- a/cpukit/score/include/rtems/score/threaddispatch.h
+++ b/cpukit/score/include/rtems/score/threaddispatch.h
@@ -232,6 +232,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_enable( Per_CPU_Control *cpu_self )

      _ISR_Local_enable( level );
    } else {
+    _Assert( disable_level > 0 );

Is the _Assert always enabled or just when built with --enable-debug?

Only if RTEMS_DEBUG is defined via --enable-rtems-debug, see <rtems/score/assert.h>.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to