1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

List the root directory after mounting /.

So cool that it works! It's spewing out a bunch of terminal escape sequences
that the OS console obviously doesn't support, but we'll get there too.
This commit is contained in:
Andreas Kling 2018-10-17 11:47:14 +02:00
parent b05ed591ab
commit 705832f387
3 changed files with 4 additions and 1 deletions

View file

@ -29,6 +29,7 @@ VFS_OBJS = \
../VirtualFileSystem/FileSystem.o \ ../VirtualFileSystem/FileSystem.o \
../VirtualFileSystem/DiskBackedFileSystem.o \ ../VirtualFileSystem/DiskBackedFileSystem.o \
../VirtualFileSystem/Ext2FileSystem.o \ ../VirtualFileSystem/Ext2FileSystem.o \
../VirtualFileSystem/InodeIdentifier.o \
../VirtualFileSystem/VirtualFileSystem.o ../VirtualFileSystem/VirtualFileSystem.o
AK_OBJS = \ AK_OBJS = \

View file

@ -152,6 +152,8 @@ void init()
// 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); new Task(user_main, "user", IPC::Handle::UserTask, Task::Ring3);
vfs->listDirectory("/");
// The idle task will spend its eternity here for now. // The idle task will spend its eternity here for now.
for (;;) { for (;;) {
asm("hlt"); asm("hlt");

View file

@ -8,7 +8,7 @@
#include <AK/kstdio.h> #include <AK/kstdio.h>
#include "sys-errno.h" #include "sys-errno.h"
#define EXT2_DEBUG //#define EXT2_DEBUG
RetainPtr<Ext2FileSystem> Ext2FileSystem::create(RetainPtr<DiskDevice>&& device) RetainPtr<Ext2FileSystem> Ext2FileSystem::create(RetainPtr<DiskDevice>&& device)
{ {