summaryrefslogtreecommitdiff
path: root/mem.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-11-27 09:28:13 -0800
committerMike Pavone <pavone@retrodev.com>2012-11-27 09:28:13 -0800
commit707e8f0e6a9d5518ecb91afdcc1cf26e35eb82a3 (patch)
treea9491003e628ebc692ed8779a8362a51a251c70f /mem.h
parentd3590618c3889ed92db9d8e848820b52da68f9f2 (diff)
x86 code gen, initial work on translator
Diffstat (limited to 'mem.h')
-rw-r--r--mem.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mem.h b/mem.h
new file mode 100644
index 0000000..22b4a79
--- /dev/null
+++ b/mem.h
@@ -0,0 +1,11 @@
+#ifndef MEM_H_
+#define MEM_H_
+
+#include <stddef.h>
+
+#define PAGE_SIZE 4096
+
+void * alloc_code(size_t *size);
+
+#endif //MEM_H_
+