diff options
author | dzwdz | 2023-01-06 21:11:44 +0100 |
---|---|---|
committer | dzwdz | 2023-01-06 21:11:44 +0100 |
commit | a1a4ab33cd75f0bc1d5e71989b01ba3446c998ae (patch) | |
tree | 4796f9ffc780dcb0336ed7c66c0cb42584320d61 /src/user/bootstrap | |
parent | e0c7bad47a54d865ef6194643e2cd20f6094e507 (diff) |
kernel: basic procfs
Diffstat (limited to 'src/user/bootstrap')
-rw-r--r-- | src/user/bootstrap/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"; |