From eec78d9f5d3f0a944500a1cac5802dfee2befc7b Mon Sep 17 00:00:00 2001 From: Shell Date: Thu, 30 Mar 2023 08:25:15 +0800 Subject: [rt-smart] testcase & improvements for memory management (#7099) * [utest/mm] add testcase for create/init format codes of create/init in components/mm * [libcpu/aarch64] fix user stack check routine * [kservice] export API for utest * [utest/mm] testcase for aspace_map format & modify the files under components/mm related with aspace_map * [lwp/user_mm] add user_map_varea for mmap feature * [mm] rename rt_mm_fault_try_fix to rt_aspace_fault_try_fix * [utest/mm] testcase for synchronization * [mm] modify unmap api to improve throughput * [utest/mm] testcases for cache and varea map * [format] remove extra space * [utest/mm] fix testcase problem in header * [lwp] extend map_user_varea with a flag * [utest/mm] testcase for lwp_map_user_varea * [libcpu/arm/cortex-a] fix kernel space layout * [utest/mm] adjust for armv7 arch --- src/kservice.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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, -- cgit v1.3.1