diff options
Diffstat (limited to 'kernel/proc.c')
-rw-r--r-- | kernel/proc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/proc.c b/kernel/proc.c index 1f6bfcc..3d65b46 100644 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -493,12 +493,11 @@ forkret(void) release(&myproc()->lock); if (first) { - // Some initialization functions must be run in the context - // of a regular process (e.g., they call sleep), and thus cannot + // File system initialization must be run in the context of a + // regular process (e.g., because it calls sleep), and thus cannot // be run from main(). first = 0; - iinit(ROOTDEV); - initlog(ROOTDEV); + fsinit(ROOTDEV); } usertrapret(); |