aboutsummaryrefslogtreecommitdiff
path: root/src/memory/paging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/memory/paging.h')
-rw-r--r--src/memory/paging.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/memory/paging.h b/src/memory/paging.h
new file mode 100644
index 0000000..4ac8efa
--- /dev/null
+++ b/src/memory/paging.h
@@ -0,0 +1,14 @@
+#ifndef PAGING_H
+#define PAGING_H
+
+void setup_flat_map(void);
+
+void setup_pager_structures(uint32_t available_mem);
+
+#define SECTION_NULL 0xffff
+
+// returns section number or SECTION_NULL in case of failure
+uint16_t claim_and_map_section
+(void *owner, uint16_t where_to_map, uint8_t access_permissions);
+
+#endif // PAGING_H