Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/init_main.c
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | |||||
/* Components of the first process -- never freed. */ | /* Components of the first process -- never freed. */ | ||||
static struct session session0; | static struct session session0; | ||||
static struct pgrp pgrp0; | static struct pgrp pgrp0; | ||||
struct proc proc0; | struct proc proc0; | ||||
struct thread0_storage thread0_st __aligned(32); | struct thread0_storage thread0_st __aligned(32); | ||||
struct vmspace vmspace0; | struct vmspace vmspace0; | ||||
struct proc *initproc; | struct proc *initproc; | ||||
int | |||||
linux_alloc_current_noop(struct thread *td __unused, int flags __unused) | |||||
{ | |||||
return (0); | |||||
} | |||||
int (*lkpi_alloc_current)(struct thread *, int) = linux_alloc_current_noop; | |||||
#ifndef BOOTHOWTO | #ifndef BOOTHOWTO | ||||
#define BOOTHOWTO 0 | #define BOOTHOWTO 0 | ||||
#endif | #endif | ||||
int boothowto = BOOTHOWTO; /* initialized so that it can be patched */ | int boothowto = BOOTHOWTO; /* initialized so that it can be patched */ | ||||
SYSCTL_INT(_debug, OID_AUTO, boothowto, CTLFLAG_RD, &boothowto, 0, | SYSCTL_INT(_debug, OID_AUTO, boothowto, CTLFLAG_RD, &boothowto, 0, | ||||
"Boot control flags, passed from loader"); | "Boot control flags, passed from loader"); | ||||
#ifndef BOOTVERBOSE | #ifndef BOOTVERBOSE | ||||
▲ Show 20 Lines • Show All 331 Lines • ▼ Show 20 Lines | struct loginclass tmplc = { | ||||
.lc_name = "", | .lc_name = "", | ||||
}; | }; | ||||
vm_paddr_t pageablemem; | vm_paddr_t pageablemem; | ||||
int i; | int i; | ||||
GIANT_REQUIRED; | GIANT_REQUIRED; | ||||
p = &proc0; | p = &proc0; | ||||
td = &thread0; | td = &thread0; | ||||
/* | /* | ||||
* Initialize magic number and osrel. | * Initialize magic number and osrel. | ||||
*/ | */ | ||||
p->p_magic = P_MAGIC; | p->p_magic = P_MAGIC; | ||||
p->p_osrel = osreldate; | p->p_osrel = osreldate; | ||||
/* | /* | ||||
* Initialize thread and process structures. | * Initialize thread and process structures. | ||||
▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines |