diff options
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index ae47944d74e..5753d2fb76a 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.25 1997/10/06 15:12:12 csapuntz Exp $ */ +/* $OpenBSD: init_main.c,v 1.26 1997/10/06 20:19:49 deraadt Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -335,16 +335,17 @@ main(framep) schedcpu(NULL); /* Mount the root file system. */ - if (vfs_mountroot()) + if ((*mountroot)()) panic("cannot mount root"); mountlist.cqh_first->mnt_flag |= MNT_ROOTFS; + mountlist.cqh_first->mnt_op->vfs_refcount++; /* Get the vnode for '/'. Set filedesc0.fd_fd.fd_cdir to reference it. */ if (VFS_ROOT(mountlist.cqh_first, &rootvnode)) panic("cannot find root vnode"); filedesc0.fd_fd.fd_cdir = rootvnode; VREF(filedesc0.fd_fd.fd_cdir); - VOP_UNLOCK(rootvnode, 0, p); + VOP_UNLOCK(rootvnode); filedesc0.fd_fd.fd_rdir = NULL; swapinit(); @@ -583,6 +584,6 @@ start_update(p) */ p->p_flag |= P_INMEM | P_SYSTEM; /* XXX */ bcopy("update", curproc->p_comm, sizeof ("update")); - sched_sync(p); + vn_update(); /* NOTREACHED */ } |