summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libdl/rtl-allocator.c')
-rw-r--r--cpukit/libdl/rtl-allocator.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/cpukit/libdl/rtl-allocator.c b/cpukit/libdl/rtl-allocator.c
index 01ce9e580f..0dca6b2f9a 100644
--- a/cpukit/libdl/rtl-allocator.c
+++ b/cpukit/libdl/rtl-allocator.c
@@ -108,6 +108,40 @@ rtems_rtl_alloc_wr_enable (rtems_rtl_alloc_tag tag, void* address)
}
void
+rtems_rtl_alloc_lock (void)
+{
+ rtems_rtl_data* rtl = rtems_rtl_lock ();
+
+ if (rtems_rtl_trace (RTEMS_RTL_TRACE_ALLOCATOR))
+ printf ("rtl: alloc: lock\n");
+
+ if (rtl != NULL)
+ rtl->allocator.allocator (RTEMS_RTL_ALLOC_LOCK,
+ RTEMS_RTL_ALLOC_OBJECT, /* should be ignored */
+ NULL,
+ 0);
+
+ rtems_rtl_unlock ();
+}
+
+
+void
+rtems_rtl_alloc_unlock (void)
+{
+ rtems_rtl_data* rtl = rtems_rtl_lock ();
+
+ if (rtems_rtl_trace (RTEMS_RTL_TRACE_ALLOCATOR))
+ printf ("rtl: alloc: unlock\n");
+
+ if (rtl != NULL)
+ rtl->allocator.allocator (RTEMS_RTL_ALLOC_UNLOCK,
+ RTEMS_RTL_ALLOC_OBJECT, /* should be ignored */
+ NULL,
+ 0);
+
+ rtems_rtl_unlock ();
+}
+void
rtems_rtl_alloc_wr_disable (rtems_rtl_alloc_tag tag, void* address)
{
rtems_rtl_data* rtl = rtems_rtl_lock ();