init_main.c (172930) | init_main.c (173004) |
---|---|
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 --- 28 unchanged lines hidden (view full) --- 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 */ 43 44#include <sys/cdefs.h> | 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 --- 28 unchanged lines hidden (view full) --- 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 */ 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/sys/kern/init_main.c 172930 2007-10-24 19:04:04Z rwatson $"); | 45__FBSDID("$FreeBSD: head/sys/kern/init_main.c 173004 2007-10-26 08:00:41Z julian $"); |
46 47#include "opt_ddb.h" 48#include "opt_init_path.h" 49#include "opt_mac.h" 50 51#include <sys/param.h> 52#include <sys/kernel.h> 53#include <sys/exec.h> --- 368 unchanged lines hidden (view full) --- 422 p->p_nice = NZERO; 423 td->td_state = TDS_RUNNING; 424 td->td_pri_class = PRI_TIMESHARE; 425 td->td_user_pri = PUSER; 426 td->td_base_user_pri = PUSER; 427 td->td_priority = PVM; 428 td->td_base_pri = PUSER; 429 td->td_oncpu = 0; | 46 47#include "opt_ddb.h" 48#include "opt_init_path.h" 49#include "opt_mac.h" 50 51#include <sys/param.h> 52#include <sys/kernel.h> 53#include <sys/exec.h> --- 368 unchanged lines hidden (view full) --- 422 p->p_nice = NZERO; 423 td->td_state = TDS_RUNNING; 424 td->td_pri_class = PRI_TIMESHARE; 425 td->td_user_pri = PUSER; 426 td->td_base_user_pri = PUSER; 427 td->td_priority = PVM; 428 td->td_base_pri = PUSER; 429 td->td_oncpu = 0; |
430 td->td_flags = TDF_INMEM; | 430 td->td_flags = TDF_INMEM|TDP_KTHREAD; |
431 p->p_peers = 0; 432 p->p_leader = p; 433 434 | 431 p->p_peers = 0; 432 p->p_leader = p; 433 434 |
435 bcopy("swapper", p->p_comm, sizeof ("swapper")); | 435 strncpy(p->p_comm, "kernel", sizeof (p->p_comm)); 436 strncpy(td->td_name, "swapper", sizeof (td->td_name)); |
436 437 callout_init(&p->p_itcallout, CALLOUT_MPSAFE); 438 callout_init_mtx(&p->p_limco, &p->p_mtx, 0); 439 callout_init(&td->td_slpcallout, CALLOUT_MPSAFE); 440 441 /* Create credentials. */ 442 p->p_ucred = crget(); 443 p->p_ucred->cr_ngroups = 1; /* group 0 */ --- 301 unchanged lines hidden --- | 437 438 callout_init(&p->p_itcallout, CALLOUT_MPSAFE); 439 callout_init_mtx(&p->p_limco, &p->p_mtx, 0); 440 callout_init(&td->td_slpcallout, CALLOUT_MPSAFE); 441 442 /* Create credentials. */ 443 p->p_ucred = crget(); 444 p->p_ucred->cr_ngroups = 1; /* group 0 */ --- 301 unchanged lines hidden --- |