summaryrefslogtreecommitdiff
path: root/src/bootstrap/main.c
diff options
context:
space:
mode:
authordzwdz2023-08-31 01:06:41 +0200
committerdzwdz2023-08-31 01:06:41 +0200
commit6cbe58797781cb8514a62bb3ab0e3e8a5d58bce2 (patch)
treebc405a3bc28dce58f1a7141640a5e0605363224c /src/bootstrap/main.c
parentcf7877737ff5032f8bad59d57b048f66c4813b5b (diff)
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.
Diffstat (limited to 'src/bootstrap/main.c')
-rw-r--r--src/bootstrap/main.c7
1 files changed, 4 insertions, 3 deletions
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 <camellia.h>
#include <camellia/flags.h>
+#include <camellia/fs/misc.h>
#include <camellia/syscalls.h>
+#include <elfload.h>
#include <stdio.h>
#include <string.h>
-#include <elfload.h>
-#include <camellia/fs/misc.h>
#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/",