Kernel: Mounting /dev MUST succeed

This commit is contained in:
apio 2022-10-11 19:53:55 +02:00
parent 04da26bff5
commit 0c451e504e

View File

@ -82,11 +82,11 @@ extern "C" void _start()
kinfoln("Prepared scheduler tasks"); kinfoln("Prepared scheduler tasks");
Init::finish_kernel_boot(); ASSERT(VFS::mkdir("/", "dev") == 0);
VFS::mkdir("/", "dev");
VFS::mount("/dev", DeviceFS::get()); VFS::mount("/dev", DeviceFS::get());
Init::finish_kernel_boot();
Interrupts::enable(); // Task switching commences here Interrupts::enable(); // Task switching commences here
kinfoln("Interrupts enabled"); kinfoln("Interrupts enabled");