feat: a file system mapping for pci devices
[lunaix-os.git] / lunaix-os / kernel / proc0.c
index cd7681854e86dfefca8455928256a7aefd9c5614..bdc23ced68618e2d89f95096b81c9471f752ae84 100644 (file)
@@ -179,6 +179,10 @@ init_platform()
         vmm_del_mapping(PD_REFERENCED, (void*)i);
         pmm_free_page(KERNEL_PID, (void*)i);
     }
+
+    for (size_t i = L1_INDEX(KERNEL_MM_BASE); i < 1023; i++) {
+        vmm_set_mapping(PD_REFERENCED, i << 22, 0, 0, VMAP_NOMAP);
+    }
 }
 
 void