[PATCH 01/45] score: Add _SMP_Assert()
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri May 15 11:41:01 UTC 2015
---
cpukit/score/include/rtems/score/assert.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/cpukit/score/include/rtems/score/assert.h b/cpukit/score/include/rtems/score/assert.h
index 43ec2d0..6308378 100644
--- a/cpukit/score/include/rtems/score/assert.h
+++ b/cpukit/score/include/rtems/score/assert.h
@@ -83,6 +83,15 @@ extern "C" {
#endif
/**
+ * @brief Like _Assert(), but only armed if RTEMS_SMP is defined.
+ */
+#if defined( RTEMS_SMP )
+ #define _SMP_Assert( _e ) _Assert( _e )
+#else
+ #define _SMP_Assert( _e ) ( ( void ) 0 )
+#endif
+
+/**
* @brief Returns true if thread dispatching is allowed.
*
* Thread dispatching can be repressed via _Thread_Disable_dispatch() or
--
1.8.4.5
More information about the devel
mailing list