From 73e5768d3a159b2e9b554fa5396a759f3d283c6c Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 14 Mar 2022 14:20:34 +0000 Subject: some updates to page handling whoops squash me --- kc/core/memory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kc/core/memory.h') diff --git a/kc/core/memory.h b/kc/core/memory.h index ea86912..6b7a816 100644 --- a/kc/core/memory.h +++ b/kc/core/memory.h @@ -56,6 +56,9 @@ void page_set_present(kc_phys_addr page); void page_set_allocated(kc_phys_addr page); void page_set_free(kc_phys_addr page); +int page_inc_ref(kc_phys_addr page); +int page_dec_ref(kc_phys_addr page); + void *page_map(phys_addr_t paddr, enum page_map_flags flags); void page_unmap(void *vaddr); -- cgit v1.3.1-1-g115d