summaryrefslogtreecommitdiff
path: root/stage3/paging.h
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/paging.h')
-rw-r--r--stage3/paging.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/stage3/paging.h b/stage3/paging.h
new file mode 100644
index 0000000..b9a3930
--- /dev/null
+++ b/stage3/paging.h
@@ -0,0 +1,20 @@
+#ifndef _PAGING_H_
+#define _PAGING_H_
+
+#include "def.h"
+
+typedef enum {
+ MEM_USABLE = 1,
+ MEM_RESERVED = 2,
+} MemRegionType;
+
+typedef struct __attribute__((packed)) {
+ void *start;
+ usize size;
+ u16 type;
+ u16 zero;
+} MemRegion;
+
+void page_region(MemRegion *region);
+
+#endif