From a1a4ab33cd75f0bc1d5e71989b01ba3446c998ae Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 6 Jan 2023 21:11:44 +0100 Subject: kernel: basic procfs --- src/user/bootstrap/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/user/bootstrap/main.c') diff --git a/src/user/bootstrap/main.c b/src/user/bootstrap/main.c index 97b980b..f145e74 100644 --- a/src/user/bootstrap/main.c +++ b/src/user/bootstrap/main.c @@ -20,6 +20,9 @@ _Noreturn void main(void) { fs_whitelist(l); } + _syscall_mount(HANDLE_PROCFS, "/proc/", strlen("/proc/")); + MOUNT_AT("/") { fs_dir_inject("/proc/"); } + MOUNT_AT("/init/") { tar_driver(&_initrd); } const char *initpath = "bin/amd64/init"; -- cgit v1.2.3