aboutsummaryrefslogtreecommitdiff
path: root/src/utils/paging.h
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-11 20:53:06 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-11 20:53:06 +0200
commit6edeba8fe208fb019aec00fdc72b97407a8078d3 (patch)
tree965376727a7519fd20f73a946c01157151098ec6 /src/utils/paging.h
parent3212145e94e0c68a5da96306545c116292dfbe85 (diff)
Enable paging
Diffstat (limited to 'src/utils/paging.h')
-rw-r--r--src/utils/paging.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/paging.h b/src/utils/paging.h
new file mode 100644
index 0000000..3e6b3f8
--- /dev/null
+++ b/src/utils/paging.h
@@ -0,0 +1,10 @@
+#ifndef PAGING_H
+#define PAGING_H
+
+#define PAGING_CR0_BIT 0x80000000
+#define PAGING_DIR_LOCATION 0x1000
+#define PAGING_TABLE_LOCATION 0x5000
+
+void paging_enable();
+
+#endif \ No newline at end of file