1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

Use FileHandle from VFS.

This commit is contained in:
Andreas Kling 2018-10-18 10:28:09 +02:00
parent e86cadc7af
commit 89851a9ded
Notes: sideshowbarker 2024-07-19 18:46:31 +09:00
4 changed files with 24 additions and 105 deletions

View file

@ -153,11 +153,12 @@ void init()
vfs->mountRoot(e2fs.copyRef());
// new Task(motd_main, "motd", IPC::Handle::MotdTask, Task::Ring0);
//new Task(motd_main, "motd", IPC::Handle::MotdTask, Task::Ring0);
new Task(user_main, "user", IPC::Handle::UserTask, Task::Ring3);
vfs->listDirectory("/");
//vfs->listDirectory("/");
#if 1
{
auto motdFile = vfs->open("/motd.txt");
ASSERT(motdFile);
@ -167,6 +168,7 @@ void init()
kprintf("%c", motdData[i]);
}
}
#endif
// The idle task will spend its eternity here for now.
for (;;) {