Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/init_main.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
#include <security/audit/audit.h> | #include <security/audit/audit.h> | ||||
#include <security/mac/mac_framework.h> | #include <security/mac/mac_framework.h> | ||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_param.h> | #include <vm/vm_param.h> | ||||
#include <vm/pmap.h> | #include <vm/pmap.h> | ||||
#include <vm/vm_map.h> | #include <vm/vm_map.h> | ||||
#include <vm/vm_domain.h> | |||||
#include <sys/copyright.h> | #include <sys/copyright.h> | ||||
#include <ddb/ddb.h> | #include <ddb/ddb.h> | ||||
#include <ddb/db_sym.h> | #include <ddb/db_sym.h> | ||||
void mi_startup(void); /* Should be elsewhere */ | void mi_startup(void); /* Should be elsewhere */ | ||||
/* Components of the first process -- never freed. */ | /* Components of the first process -- never freed. */ | ||||
▲ Show 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | proc0_init(void *dummy __unused) | ||||
td->td_base_user_pri = PUSER; | td->td_base_user_pri = PUSER; | ||||
td->td_lend_user_pri = PRI_MAX; | td->td_lend_user_pri = PRI_MAX; | ||||
td->td_priority = PVM; | td->td_priority = PVM; | ||||
td->td_base_pri = PVM; | td->td_base_pri = PVM; | ||||
td->td_oncpu = 0; | td->td_oncpu = 0; | ||||
td->td_flags = TDF_INMEM; | td->td_flags = TDF_INMEM; | ||||
td->td_pflags = TDP_KTHREAD; | td->td_pflags = TDP_KTHREAD; | ||||
td->td_cpuset = cpuset_thread0(); | td->td_cpuset = cpuset_thread0(); | ||||
vm_domain_policy_init(&td->td_vm_dom_policy); | |||||
vm_domain_policy_set(&td->td_vm_dom_policy, | |||||
VM_POLICY_NONE, -1); | |||||
vm_domain_policy_init(&p->p_vm_dom_policy); | |||||
vm_domain_policy_set(&p->p_vm_dom_policy, | |||||
VM_POLICY_NONE, -1); | |||||
prison0_init(); | prison0_init(); | ||||
p->p_peers = 0; | p->p_peers = 0; | ||||
p->p_leader = p; | p->p_leader = p; | ||||
p->p_reaper = p; | p->p_reaper = p; | ||||
LIST_INIT(&p->p_reaplist); | LIST_INIT(&p->p_reaplist); | ||||
strncpy(p->p_comm, "kernel", sizeof (p->p_comm)); | strncpy(p->p_comm, "kernel", sizeof (p->p_comm)); | ||||
strncpy(td->td_name, "swapper", sizeof (td->td_name)); | strncpy(td->td_name, "swapper", sizeof (td->td_name)); | ||||
▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines |