Преглед на файлове

Kernel: Don't instantiate and throw away ProcFS + DevPtsFS on boot

Oops, we were creating these and then throwing them away. They will
get instantiated a bit later, when we bring up the mounts in /etc/fstab
from userspace.
Andreas Kling преди 5 години
родител
ревизия
4f4d4670fe
променени са 1 файла, в които са добавени 0 реда и са изтрити 6 реда
  1. 0 6
      Kernel/init.cpp

+ 0 - 6
Kernel/init.cpp

@@ -303,12 +303,6 @@ extern "C" [[noreturn]] void init()
     auto e1000 = E1000NetworkAdapter::autodetect();
     auto e1000 = E1000NetworkAdapter::autodetect();
     auto rtl8139 = RTL8139NetworkAdapter::autodetect();
     auto rtl8139 = RTL8139NetworkAdapter::autodetect();
 
 
-    NonnullRefPtr<ProcFS> new_procfs = ProcFS::create();
-    new_procfs->initialize();
-
-    auto devptsfs = DevPtsFS::create();
-    devptsfs->initialize();
-
     Process::initialize();
     Process::initialize();
     Thread::initialize();
     Thread::initialize();
     Process::create_kernel_process("init_stage2", init_stage2);
     Process::create_kernel_process("init_stage2", init_stage2);