summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coremutexseizeintr.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-21 15:57:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-21 15:57:22 +0000
commite2ba62d1ea181d8057c6c3f6ba2e9dc651f6aa3a (patch)
tree3ba6fcde8d360aa8552a7667159b04f67051c27b /cpukit/score/src/coremutexseizeintr.c
parent2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-e2ba62d1ea181d8057c6c3f6ba2e9dc651f6aa3a.tar.bz2
2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, score/include/rtems/score/coremutex.h, score/inline/rtems/score/coremutex.inl: Add the ability to disable inlining coremutex seize. This reduces the code size and also improves the process of coverage analysis. * score/src/coremutexseizeintr.c: New file.
Diffstat (limited to 'cpukit/score/src/coremutexseizeintr.c')
-rw-r--r--cpukit/score/src/coremutexseizeintr.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/cpukit/score/src/coremutexseizeintr.c b/cpukit/score/src/coremutexseizeintr.c
new file mode 100644
index 0000000000..f8363cd637
--- /dev/null
+++ b/cpukit/score/src/coremutexseizeintr.c
@@ -0,0 +1,31 @@
+/*
+ * Mutex Handler -- Seize interrupt disable version
+ *
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems/system.h>
+#include <rtems/score/isr.h>
+#include <rtems/score/coremutex.h>
+#include <rtems/score/states.h>
+#include <rtems/score/thread.h>
+#include <rtems/score/threadq.h>
+
+int _CORE_mutex_Seize_interrupt_trylock(
+ CORE_mutex_Control *the_mutex,
+ ISR_Level *level_p
+)
+{
+ return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
+}