From 2ff21cc5011f0359715d4ac557ea7a1e64d1b5d5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 16 Nov 2025 13:45:37 -0500 Subject: kern: vm: Add frame allocation and deallocation Signed-off-by: Ian Moffett --- sys/inc/vm/phys.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'sys/inc') 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 +/* + * 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_ */ -- cgit v1.2.3