summaryrefslogtreecommitdiff
path: root/kc/core/memory.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-03-14 14:20:34 +0000
committerAda Christine <adachristine18@gmail.com>2022-03-14 20:59:18 +0000
commit73e5768d3a159b2e9b554fa5396a759f3d283c6c (patch)
tree1ac5a51e6d9d02377bced4ed55bea97087a4e1dd /kc/core/memory.h
parent54ba636ecc8cbd44776c998a68a666b0b6f6abae (diff)
some updates to page handling
whoops squash me
Diffstat (limited to 'kc/core/memory.h')
-rw-r--r--kc/core/memory.h3
1 files changed, 3 insertions, 0 deletions
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);