summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smplock.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/smplock.c')
-rw-r--r--cpukit/score/src/smplock.c68
1 files changed, 68 insertions, 0 deletions
diff --git a/cpukit/score/src/smplock.c b/cpukit/score/src/smplock.c
new file mode 100644
index 0000000000..14400917ef
--- /dev/null
+++ b/cpukit/score/src/smplock.c
@@ -0,0 +1,68 @@
+/*
+ * Copyright (c) 2015 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#if HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
+#include <rtems/score/smplock.h>
+
+#if defined(RTEMS_SMP_LOCK_DO_NOT_INLINE)
+
+void _SMP_lock_Initialize(
+ SMP_lock_Control *lock,
+ const char *name
+)
+{
+ _SMP_lock_Initialize_body( lock, name );
+}
+
+void _SMP_lock_Destroy( SMP_lock_Control *lock )
+{
+ _SMP_lock_Destroy_body( lock );
+}
+
+void _SMP_lock_Acquire(
+ SMP_lock_Control *lock,
+ SMP_lock_Context *context
+)
+{
+ _SMP_lock_Acquire_body( lock, context );
+}
+
+void _SMP_lock_Release(
+ SMP_lock_Control *lock,
+ SMP_lock_Context *context
+)
+{
+ _SMP_lock_Release_body( lock, context );
+}
+
+void _SMP_lock_ISR_disable_and_acquire(
+ SMP_lock_Control *lock,
+ SMP_lock_Context *context
+)
+{
+ _SMP_lock_ISR_disable_and_acquire_body( lock, context );
+}
+
+void _SMP_lock_Release_and_ISR_enable(
+ SMP_lock_Control *lock,
+ SMP_lock_Context *context
+)
+{
+ _SMP_lock_Release_and_ISR_enable_body( lock, context );
+}
+
+#endif /* defined(RTEMS_SMP_LOCK_DO_NOT_INLINE) */