summaryrefslogtreecommitdiff
path: root/src/user/app/init/init.c
diff options
context:
space:
mode:
authordzwdz2022-07-30 20:45:36 +0200
committerdzwdz2022-07-31 00:13:08 +0200
commit40674fa5469c7af09095d5dd5cca8eccc728561c (patch)
treeb1d49dedf9eb2718d34c13272e0f00e99aa31732 /src/user/app/init/init.c
parentfdeac40f867ca0c43ade53cce4b77bb146b10aae (diff)
user: replace the MOUNT macro with MOUNT_AT
The old style could be confused with a regular function, where the driver would be executed unconditionally. This should make it more obvious that the driver doesn't get executed in the parent process.
Diffstat (limited to 'src/user/app/init/init.c')
-rw-r--r--src/user/app/init/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user/app/init/init.c b/src/user/app/init/init.c
index bb92cce..519329c 100644
--- a/src/user/app/init/init.c
+++ b/src/user/app/init/init.c
@@ -28,10 +28,10 @@ int main(void) {
freopen("/kdev/com1", "a+", stdout);
printf("in init (stage 2), main at 0x%x\n", &main);
- MOUNT("/tmp/", tmpfs_drv());
- MOUNT("/keyboard", ps2_drv());
- MOUNT("/vga_tty", ansiterm_drv());
- MOUNT("/bin/", fs_passthru("/init/bin"));
+ MOUNT_AT("/tmp/") { tmpfs_drv(); }
+ MOUNT_AT("/keyboard") { ps2_drv(); }
+ MOUNT_AT("/vga_tty") { ansiterm_drv(); }
+ MOUNT_AT("/bin/") { fs_passthru("/init/bin"); }
if (fork()) {
/* used to trigger a kernel bug