From 0c451e504e4f91d9c9773d5de14683bd2b1ebafc Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 11 Oct 2022 19:53:55 +0200 Subject: [PATCH] Kernel: Mounting /dev MUST succeed --- kernel/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/src/main.cpp b/kernel/src/main.cpp index 0136e6a7..967a35e3 100644 --- a/kernel/src/main.cpp +++ b/kernel/src/main.cpp @@ -82,11 +82,11 @@ extern "C" void _start() kinfoln("Prepared scheduler tasks"); - Init::finish_kernel_boot(); - - VFS::mkdir("/", "dev"); + ASSERT(VFS::mkdir("/", "dev") == 0); VFS::mount("/dev", DeviceFS::get()); + Init::finish_kernel_boot(); + Interrupts::enable(); // Task switching commences here kinfoln("Interrupts enabled");