init_main.c (3905c09afba02f5e86844bcbf9f8b52b960a5cd3) | init_main.c (9a3b3e8bce8e8c8bbec663229e16bebb3cfc5d53) |
---|---|
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.5 1997/08/15 02:13:31 smp Exp smp $ | 42 * $Id: init_main.c,v 1.69 1997/08/15 02:33:30 fsmp Exp $ |
43 */ 44 45#include "opt_rlimit.h" 46#include "opt_devfs.h" 47 48#include <sys/param.h> 49#include <sys/file.h> 50#include <sys/filedesc.h> --- 485 unchanged lines hidden (view full) --- 536/* ARGSUSED*/ 537static void 538kthread_init(dummy) 539 void *dummy; 540{ 541 /* Create process 1 (init(8)). */ 542 start_init(curproc); 543 | 43 */ 44 45#include "opt_rlimit.h" 46#include "opt_devfs.h" 47 48#include <sys/param.h> 49#include <sys/file.h> 50#include <sys/filedesc.h> --- 485 unchanged lines hidden (view full) --- 536/* ARGSUSED*/ 537static void 538kthread_init(dummy) 539 void *dummy; 540{ 541 /* Create process 1 (init(8)). */ 542 start_init(curproc); 543 |
544#ifdef SMP 545 /* wait for the SMP idle loops to come online */ 546 while (smp_idle_loops < mp_ncpus) 547 tsleep((caddr_t *)&smp_idle_loops, PWAIT, "smpilw", 0); 548#endif /* SMP */ 549 | |
550 prepare_usermode(); 551 552 /* 553 * This returns to the fork trampoline, then to user mode. 554 */ 555 return; 556} 557 --- 105 unchanged lines hidden --- | 544 prepare_usermode(); 545 546 /* 547 * This returns to the fork trampoline, then to user mode. 548 */ 549 return; 550} 551 --- 105 unchanged lines hidden --- |