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:
parent
e86cadc7af
commit
89851a9ded
Notes:
sideshowbarker
2024-07-19 18:46:31 +09:00
Author: https://github.com/awesomekling
Commit: 89851a9ded
4 changed files with 24 additions and 105 deletions
|
@ -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 (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue