Kernel: DeviceManager is now a 'FileSystem' so it can expose devices

Shell reads keyboard through /dev/input :)
This commit is contained in:
2023-03-29 11:50:46 +03:00
parent f4db246658
commit a24c2d9be2
9 changed files with 135 additions and 25 deletions

View File

@@ -184,7 +184,6 @@ extern "C" void kernel_main()
))));
#else
MUST(scheduler.add_thread(MUST(Thread::create(init2, tty1))));
MUST(scheduler.add_thread(MUST(Thread::create(device_updater))));
#endif
scheduler.start();
ASSERT(false);
@@ -206,6 +205,8 @@ void init2(void* tty1_ptr)
TTY* tty1 = (TTY*)tty1_ptr;
DeviceManager::initialize();
MUST(VirtualFileSystem::initialize());
if (auto res = VirtualFileSystem::get().mount_test(); res.is_error())
dwarnln("{}", res.error());