- // reserve higher half
- for (size_t i = L1_INDEX(KERNEL_MM_BASE); i < 1023; i++) {
- assert(vmm_set_mapping(VMS_SELF, i << 22, 0, 0, VMAP_NOMAP));
- }
+ /* the bare metal are now happy, let's get software over with */
+
+ must_success(vfs_mount_root("ramfs", NULL));
+ must_success(vfs_mount("/dev", "devfs", NULL, 0));
+
+ invoke_init_function(on_boot);
+
+ /* Finish up bootstrapping sequence, we are ready to spawn the root process
+ * and start geting into uspace
+ */
+ boot_end(bhctx);
+
+ spawn_lunad();