init_main.c (25164) | init_main.c (25723) |
---|---|
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.60 1997/04/07 07:15:59 peter Exp $ | 42 * $Id: init_main.c,v 1.61 1997/04/26 11:46:11 peter Exp $ |
43 */ 44 45#include "opt_rlimit.h" 46#include "opt_smp.h" 47#include "opt_devfs.h" 48 49#include <sys/param.h> 50#include <sys/file.h> --- 400 unchanged lines hidden (view full) --- 451 /* Kick off timeout driven events by calling first time. */ 452 roundrobin(NULL); 453 schedcpu(NULL); 454} 455SYSINIT(sched_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, sched_setup, NULL) 456 457/* ARGSUSED*/ 458static void xxx_vfs_mountroot __P((void *fsnamep)); | 43 */ 44 45#include "opt_rlimit.h" 46#include "opt_smp.h" 47#include "opt_devfs.h" 48 49#include <sys/param.h> 50#include <sys/file.h> --- 400 unchanged lines hidden (view full) --- 451 /* Kick off timeout driven events by calling first time. */ 452 roundrobin(NULL); 453 schedcpu(NULL); 454} 455SYSINIT(sched_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, sched_setup, NULL) 456 457/* ARGSUSED*/ 458static void xxx_vfs_mountroot __P((void *fsnamep)); |
459#ifdef BOOTP 460extern void bootpc_init __P((void)); 461#endif |
|
459static void 460xxx_vfs_mountroot(fsnamep) 461 void *fsnamep; 462{ | 462static void 463xxx_vfs_mountroot(fsnamep) 464 void *fsnamep; 465{ |
466 /* XXX Add a separate SYSINIT entry */ 467#ifdef BOOTP 468 bootpc_init(); 469#endif |
|
463 /* Mount the root file system. */ 464 if (vfs_mountrootfs(*((char **) fsnamep))) 465 panic("cannot mount root"); 466} 467SYSINIT(mountroot, SI_SUB_ROOT, SI_ORDER_FIRST, xxx_vfs_mountroot, &mountrootfsname) 468 469/* ARGSUSED*/ 470static void xxx_vfs_root_fdtab __P((void *dummy)); --- 159 unchanged lines hidden --- | 470 /* Mount the root file system. */ 471 if (vfs_mountrootfs(*((char **) fsnamep))) 472 panic("cannot mount root"); 473} 474SYSINIT(mountroot, SI_SUB_ROOT, SI_ORDER_FIRST, xxx_vfs_mountroot, &mountrootfsname) 475 476/* ARGSUSED*/ 477static void xxx_vfs_root_fdtab __P((void *dummy)); --- 159 unchanged lines hidden --- |