summaryrefslogtreecommitdiff
path: root/stage3/paging.h
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2022-10-06 16:45:17 +0200
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2022-10-06 16:45:17 +0200
commitf8397815545adb7d0da36614e0065aa68453a2e4 (patch)
treea771f526970c6724b2511577dceece8783450a49 /stage3/paging.h
downloadcuddles-f8397815545adb7d0da36614e0065aa68453a2e4.tar.xz
Initial commit
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