aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/alloc.h
diff options
context:
space:
mode:
authorMarvin Borner2020-02-16 17:29:19 +0100
committerMarvin Borner2020-02-16 17:29:50 +0100
commit45184af20936cb889b658e69e00a0bb3d522757f (patch)
tree4b6c3408e526fe733ccfa960726c37e70dc6f989 /src/kernel/memory/alloc.h
parentf5b995586e28f7db426f4707a4348dc067df41c0 (diff)
Revert to good ol' paging
Diffstat (limited to 'src/kernel/memory/alloc.h')
-rw-r--r--src/kernel/memory/alloc.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/kernel/memory/alloc.h b/src/kernel/memory/alloc.h
new file mode 100644
index 0000000..1f454b9
--- /dev/null
+++ b/src/kernel/memory/alloc.h
@@ -0,0 +1,24 @@
+#ifndef MELVIX_ALLOC_H
+#define MELVIX_ALLOC_H
+
+#include <stddef.h>
+
+#define PREFIX(func) k ## func
+
+int liballoc_lock();
+
+int liballoc_unlock();
+
+void *liballoc_alloc(size_t);
+
+int liballoc_free(void *, size_t);
+
+void *PREFIX(malloc)(size_t);
+
+void *PREFIX(realloc)(void *, size_t);
+
+void *PREFIX(calloc)(size_t, size_t);
+
+void PREFIX(free)(void *);
+
+#endif \ No newline at end of file