BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 4f822f67ee63ef4245ad6bfcd0e3fe04ff6f34a0 / memory / memory.h

// Related

Nucleus

Barry Stack-based page frame allocator 4f822f6 (3 years, 3 months ago)
diff --git a/memory/memory.h b/memory/memory.h
new file mode 100644
index 0000000..a4abeb0
--- /dev/null
+++ b/memory/memory.h
@@ -0,0 +1,13 @@
+#ifndef MEMORY_H
+#define MEMORY_H
+
+#include <stdint.h>
+#include <stddef.h>
+
+#define PAGE_SIZE 0x1000
+
+uintptr_t alloc_frame(void);
+void free_frame(uintptr_t frame);
+void init_frames(size_t memMapSize, void *memMap);
+
+#endif