aboutsummaryrefslogtreecommitdiff
path: root/inc/mem.h
diff options
context:
space:
mode:
authorMarvin Borner2023-01-28 22:29:48 +0100
committerMarvin Borner2023-01-28 22:29:48 +0100
commitde450bfb4354f716fb43fae69d90ed513068d10b (patch)
treeb474219ae3baaeb8a075e6fbb5c57c3857faa588 /inc/mem.h
parent75bb42663294b388377178b7257c6f8c0f787032 (diff)
Rewrite, bootstrap
Rewriting without KVM, huge goals, won't finish, just for fun.
Diffstat (limited to 'inc/mem.h')
-rw-r--r--inc/mem.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/mem.h b/inc/mem.h
new file mode 100644
index 0000000..e2d7a18
--- /dev/null
+++ b/inc/mem.h
@@ -0,0 +1,13 @@
+#ifndef MEM_H
+#define MEM_H
+
+#include <stdio.h>
+#include <stdint.h>
+
+typedef uint64_t vaddr;
+
+void *mem_alloc(size_t size, vaddr virt);
+void *mem_phys(vaddr virt);
+void mem_free_all(void);
+
+#endif