mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Implement /proc/PID/vm.
Refactored SyntheticFileSystem to maintain an arbitrary directory structure. ProcFileSystem creates a directory entry in /proc for each new process.
This commit is contained in:
@@ -108,9 +108,7 @@ static void init_stage2()
|
||||
|
||||
vfs->mountRoot(e2fs.copyRef());
|
||||
|
||||
auto procfs = ProcFileSystem::create();
|
||||
procfs->initialize();
|
||||
vfs->mount(procfs.copyRef(), "/proc");
|
||||
vfs->mount(ProcFileSystem::the(), "/proc");
|
||||
|
||||
#endif
|
||||
|
||||
@@ -200,6 +198,9 @@ void init()
|
||||
kprintf("%u kB base memory\n", base_memory);
|
||||
kprintf("%u kB extended memory\n", ext_memory);
|
||||
|
||||
auto procfs = ProcFileSystem::create();
|
||||
procfs->initialize();
|
||||
|
||||
Task::initialize();
|
||||
|
||||
Task::createKernelTask(undertaker_main, "undertaker");
|
||||
|
||||
Reference in New Issue
Block a user