aboutsummaryrefslogtreecommitdiff
path: root/include/09.paging/deo9
diff options
context:
space:
mode:
Diffstat (limited to 'include/09.paging/deo9')
-rw-r--r--include/09.paging/deo97
1 files changed, 7 insertions, 0 deletions
diff --git a/include/09.paging/deo9 b/include/09.paging/deo9
new file mode 100644
index 0000000..d99797b
--- /dev/null
+++ b/include/09.paging/deo9
@@ -0,0 +1,7 @@
+void set_paging()
+{
+ set_pd();
+ for(size_t i=0;i<1024;i++) set_pt(i,0x00400000 * i); // all 4GB mapped
+ loadPageDirectory(page_directory);
+ enablePaging();
+}