summaryrefslogtreecommitdiff
path: root/sys/inc/vm
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-16 13:45:37 -0500
committerIan Moffett <ian@osmora.org>2025-11-16 13:45:37 -0500
commit2ff21cc5011f0359715d4ac557ea7a1e64d1b5d5 (patch)
tree9e5cb5d7ce5d0d25826bf4b837af45261677f77e /sys/inc/vm
parent1d8a4028ca290cd0a99164038bd5a034cf052afa (diff)
kern: vm: Add frame allocation and deallocation
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/inc/vm')
-rw-r--r--sys/inc/vm/phys.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/inc/vm/phys.h b/sys/inc/vm/phys.h
index 805759a..93bbf39 100644
--- a/sys/inc/vm/phys.h
+++ b/sys/inc/vm/phys.h
@@ -32,6 +32,21 @@
#include <sys/types.h>
+/*
+ * Initialize the physical memory manager
+ */
void vm_phys_init(void);
+/*
+ * Allocate a number of contigious physical memory
+ * frames
+ */
+uintptr_t vm_phys_alloc(size_t count);
+
+/*
+ * Free a contigious region of physical memory
+ * frames
+ */
+void vm_phys_free(uintptr_t base, size_t count);
+
#endif /* !_VM_PHYS_H_ */