diff options
| author | Shell <[email protected]> | 2023-03-30 08:25:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-30 08:25:15 +0800 |
| commit | eec78d9f5d3f0a944500a1cac5802dfee2befc7b (patch) | |
| tree | 8a29c0d564ea854d41f27a385f55100f3a8bd341 /src | |
| parent | dc77d8fcb62024f8dbb6de73cd2b4a604ae20f3a (diff) | |
[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
Diffstat (limited to 'src')
| -rw-r--r-- | src/kservice.c | 6 |
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, |
