aboutsummaryrefslogtreecommitdiff
path: root/sys/include/vm/vm_physseg.h
diff options
context:
space:
mode:
authorsigsegv7 <ian@vegaa.systems>2023-10-07 16:52:15 -0400
committersigsegv7 <ian@vegaa.systems>2023-10-07 16:52:15 -0400
commit32dbfb1ae399904c9fadc5b7fff232fcbc139add (patch)
tree8f3b1063fc0a1e6d91e2e07731ac5c42407a43b3 /sys/include/vm/vm_physseg.h
parent75ce5c6864b5b9b7a060d813d6d4c9f27e8ffabd (diff)
kernel: vm: Add pageframe allocation
This commit introduces pageframe allocation logic to the Vega virtual memory subsystem. Signed-off-by: sigsegv7 <ian@vegaa.systems>
Diffstat (limited to 'sys/include/vm/vm_physseg.h')
-rw-r--r--sys/include/vm/vm_physseg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/vm/vm_physseg.h b/sys/include/vm/vm_physseg.h
index 5bf21db..5865a84 100644
--- a/sys/include/vm/vm_physseg.h
+++ b/sys/include/vm/vm_physseg.h
@@ -30,6 +30,10 @@
#ifndef _VM_VM_PHYSSEG_H_
#define _VM_VM_PHYSSEG_H_
+#include <sys/types.h>
+
void vm_physseg_init(void);
+uintptr_t vm_alloc_pageframe(size_t count);
+void vm_free_pageframe(uintptr_t base, size_t count);
#endif /* !_VM_VM_PHYSSEG_H_ */