From 6cbe58797781cb8514a62bb3ab0e3e8a5d58bce2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 31 Aug 2023 01:06:41 +0200 Subject: kernel: add _sys_getprocfs in place of HANDLE_PROCFS This makes the side-effects more explicit, and feels less hacky than `HANDLE_PROCFS`. I don't think accessing a handle alone should have side-effects, even if it's a "special" one. --- src/bootstrap/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/bootstrap/main.c') diff --git a/src/bootstrap/main.c b/src/bootstrap/main.c index d27da39..27c5fad 100644 --- a/src/bootstrap/main.c +++ b/src/bootstrap/main.c @@ -1,10 +1,11 @@ #include <_proc.h> +#include #include +#include #include +#include #include #include -#include -#include #include "tar.h" @@ -17,7 +18,7 @@ int main(void) { _sys_memflag(_psdata_loc, 1, MEMFLAG_PRESENT); setprogname("bootstrap"); - _sys_mount(HANDLE_PROCFS, "/proc/", strlen("/proc/")); + camellia_procfs("/proc/"); MOUNT_AT("/") { fs_dirinject2((const char*[]) { "/proc/", -- cgit v1.2.3