mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
[fix] mm bugs (#7010)
* [fix] implementation fault on avl * [fix] mm may free varea allocated statically * [test] add test and benchmark for avl
This commit is contained in:
@@ -205,6 +205,8 @@ void *rt_hw_mmu_map(rt_aspace_t aspace, void *v_addr, void *p_addr, size_t size,
|
||||
|
||||
if (ret != 0)
|
||||
{
|
||||
/* other types of return value are taken as programming error */
|
||||
RT_ASSERT(ret == MMU_MAP_ERROR_NOPAGE);
|
||||
/* error, undo map */
|
||||
while (unmap_va != v_addr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user