Browse Source

[libcpu/aarch64] stop when no page is free

wangxiaoyao 2 năm trước cách đây
mục cha
commit
12f0df9279
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      libcpu/aarch64/common/mmu.c

+ 4 - 0
libcpu/aarch64/common/mmu.c

@@ -109,6 +109,10 @@ static void _kenrel_unmap_4K(unsigned long *lv0_tbl, void *v_addr)
             }
             rt_pages_free(cur_page, 0);
         }
+        else
+        {
+            break;
+        }
         level--;
     }