Browse Source

fix(page.refcount): alloc refcount in ident. area

greatbridf 2 years ago
parent
commit
d551a55a48
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/kernel/interrupt.cpp

+ 1 - 1
src/kernel/interrupt.cpp

@@ -205,7 +205,7 @@ extern "C" void int14_handler(int14_data* d)
 
 
         --*page->ref_count;
         --*page->ref_count;
 
 
-        page->ref_count = (size_t*)k_malloc(sizeof(size_t));
+        page->ref_count = (size_t*)ki_malloc(sizeof(size_t));
         *page->ref_count = 1;
         *page->ref_count = 1;
         page->attr.in.cow = 0;
         page->attr.in.cow = 0;
         page->phys_page_id = new_page;
         page->phys_page_id = new_page;