aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/mmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/memory/mmap.h')
-rw-r--r--src/kernel/memory/mmap.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/kernel/memory/mmap.h b/src/kernel/memory/mmap.h
new file mode 100644
index 0000000..1de801f
--- /dev/null
+++ b/src/kernel/memory/mmap.h
@@ -0,0 +1,18 @@
+#ifndef MELVIX_MMAP
+#define MELVIX_MMAP
+
+#include <stdint.h>
+
+void *kmalloc_frames(u32 num);
+void kfree_frames(void *ptr, u32 num);
+
+u8 mmap_check(u32 n);
+void mmap_init(u32 size);
+void mmap_init_finalize();
+void mmap_address_set_free(u32 address);
+void mmap_address_set_used(u32 address);
+u8 mmap_index_check(u32 n);
+void mmap_index_set_free(u32 n);
+void mmap_index_set_used(u32 n);
+
+#endif \ No newline at end of file