Deleted Added
full compact
init_main.c (31396) init_main.c (31403)
1/*
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

--- 25 unchanged lines hidden (view full) ---

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94
1/*
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

--- 25 unchanged lines hidden (view full) ---

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94
42 * $Id: init_main.c,v 1.74 1997/11/07 08:52:53 phk Exp $
42 * $Id: init_main.c,v 1.75 1997/11/24 18:35:04 bde Exp $
43 */
44
45#include "opt_devfs.h"
46
47#include <sys/param.h>
48#include <sys/file.h>
49#include <sys/filedesc.h>
50#include <sys/kernel.h>

--- 401 unchanged lines hidden (view full) ---

452/*
453 ***************************************************************************
454 ****
455 **** The following SYSINIT's and glue code should be moved to the
456 **** respective files on a per subsystem basis.
457 ****
458 ***************************************************************************
459 */
43 */
44
45#include "opt_devfs.h"
46
47#include <sys/param.h>
48#include <sys/file.h>
49#include <sys/filedesc.h>
50#include <sys/kernel.h>

--- 401 unchanged lines hidden (view full) ---

452/*
453 ***************************************************************************
454 ****
455 **** The following SYSINIT's and glue code should be moved to the
456 **** respective files on a per subsystem basis.
457 ****
458 ***************************************************************************
459 */
460/* ARGSUSED */
461static void sched_setup __P((void *dummy));
462static void
463sched_setup(dummy)
464 void *dummy;
465{
466 /* Kick off timeout driven events by calling first time. */
467 roundrobin(NULL);
468 schedcpu(NULL);
469}
470SYSINIT(sched_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, sched_setup, NULL)
471
472/* ARGSUSED */
473static void root_conf __P((void *dummy));
474static void
475root_conf(dummy)
476 void *dummy;
477{
478 cpu_rootconf();
479}
480SYSINIT(root_conf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, root_conf, NULL)
481
460
461/* ARGSUSED */
462static void root_conf __P((void *dummy));
463static void
464root_conf(dummy)
465 void *dummy;
466{
467 cpu_rootconf();
468}
469SYSINIT(root_conf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, root_conf, NULL)
470
482/* ARGSUSED */
483static void dump_conf __P((void *dummy));
484static void
485dump_conf(dummy)
486 void *dummy;
487{
488 cpu_dumpconf();
489}
490SYSINIT(dump_conf, SI_SUB_DUMP_CONF, SI_ORDER_FIRST, dump_conf, NULL)
491
492/* ARGSUSED*/
471/* ARGSUSED*/
493static void xxx_vfs_mountroot __P((void *fsnamep));
494#ifdef BOOTP
495extern void bootpc_init __P((void));
496#endif
497static void
498xxx_vfs_mountroot(fsnamep)
499 void *fsnamep;
500{
501 /* XXX Add a separate SYSINIT entry */
502#ifdef BOOTP
503 bootpc_init();
504#endif
505 /* Mount the root file system. */
506 if (vfs_mountrootfs(*((char **) fsnamep)))
507 panic("cannot mount root");
508}
509SYSINIT(mountroot, SI_SUB_MOUNT_ROOT, SI_ORDER_FIRST, xxx_vfs_mountroot,
510 &mountrootfsname)
511
512/* ARGSUSED*/
513static void xxx_vfs_root_fdtab __P((void *dummy));
514static void
515xxx_vfs_root_fdtab(dummy)
516 void *dummy;
517{
518 register struct filedesc0 *fdp = &filedesc0;
519
520 /* Get the vnode for '/'. Set fdp->fd_fd.fd_cdir to reference it. */

--- 151 unchanged lines hidden ---
472static void xxx_vfs_root_fdtab __P((void *dummy));
473static void
474xxx_vfs_root_fdtab(dummy)
475 void *dummy;
476{
477 register struct filedesc0 *fdp = &filedesc0;
478
479 /* Get the vnode for '/'. Set fdp->fd_fd.fd_cdir to reference it. */

--- 151 unchanged lines hidden ---