init_main.c (42175) | init_main.c (42379) |
---|---|
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.101 1998/12/19 08:23:31 julian Exp $ | 42 * $Id: init_main.c,v 1.102 1998/12/30 10:38:58 dfr 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> --- 413 unchanged lines hidden (view full) --- 464#ifdef INCOMPAT_LITES2 465 /* 466 * proc0 needs to have a coherent frame base in its stack. 467 */ 468 cpu_set_init_frame(p, init_framep); /* XXX! */ 469#endif /* INCOMPAT_LITES2*/ 470#endif 471 | 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> --- 413 unchanged lines hidden (view full) --- 464#ifdef INCOMPAT_LITES2 465 /* 466 * proc0 needs to have a coherent frame base in its stack. 467 */ 468 cpu_set_init_frame(p, init_framep); /* XXX! */ 469#endif /* INCOMPAT_LITES2*/ 470#endif 471 |
472#ifndef COMPAT_LINUX_THREADS | |
473 /* 474 * We continue to place resource usage info and signal 475 * actions in the user struct so they're pageable. 476 */ 477 p->p_stats = &p->p_addr->u_stats; 478 p->p_sigacts = &p->p_addr->u_sigacts; | 472 /* 473 * We continue to place resource usage info and signal 474 * actions in the user struct so they're pageable. 475 */ 476 p->p_stats = &p->p_addr->u_stats; 477 p->p_sigacts = &p->p_addr->u_sigacts; |
479#else 480 /* 481 * We continue to place resource usage info in the user struct so 482 * it's pageable. 483 */ 484 p->p_stats = &p->p_addr->u_stats; | |
485 | 478 |
486 p->p_sigacts = &p->p_procsig->ps_sigacts; 487#endif /* COMPAT_LINUX_THREADS */ 488 | |
489 /* 490 * Charge root for one process. 491 */ 492 (void)chgproccnt(0, 1); 493 494 /* 495 * Initialize the procfs flags (to 0, of course) 496 */ --- 212 unchanged lines hidden --- | 479 /* 480 * Charge root for one process. 481 */ 482 (void)chgproccnt(0, 1); 483 484 /* 485 * Initialize the procfs flags (to 0, of course) 486 */ --- 212 unchanged lines hidden --- |