diff options
author | dzwdz | 2022-07-30 20:45:36 +0200 |
---|---|---|
committer | dzwdz | 2022-07-31 00:13:08 +0200 |
commit | 40674fa5469c7af09095d5dd5cca8eccc728561c (patch) | |
tree | b1d49dedf9eb2718d34c13272e0f00e99aa31732 /src/user/app/init/init.c | |
parent | fdeac40f867ca0c43ade53cce4b77bb146b10aae (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.c | 8 |
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 |