summaryrefslogtreecommitdiff
path: root/src/kservice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kservice.c')
-rw-r--r--src/kservice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kservice.c b/src/kservice.c
index e706d70247..e522a649cf 100644
--- a/src/kservice.c
+++ b/src/kservice.c
@@ -1568,6 +1568,12 @@ rt_inline void _heap_unlock(rt_base_t level)
#endif
}
+#ifdef RT_USING_UTESTCASES
+/* export to utest to observe the inner statements */
+rt_base_t rt_heap_lock(void) __attribute__((alias("_heap_lock")));
+void rt_heap_unlock(rt_base_t level) __attribute__((alias("_heap_unlock")));
+#endif
+
#if defined(RT_USING_SMALL_MEM_AS_HEAP)
static rt_smem_t system_heap;
rt_inline void _smem_info(rt_size_t *total,