mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 13:15:21 +08:00
Update to FreeBSD head 2018-02-01
Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4. Update #3472.
This commit is contained in:
@@ -91,7 +91,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_domain.h>
|
||||
#include <sys/copyright.h>
|
||||
|
||||
#include <ddb/ddb.h>
|
||||
@@ -235,6 +234,8 @@ mi_startup(void)
|
||||
int verbose;
|
||||
#endif
|
||||
|
||||
TSENTER();
|
||||
|
||||
#ifndef __rtems__
|
||||
if (boothowto & RB_VERBOSE)
|
||||
bootverbose++;
|
||||
@@ -334,6 +335,8 @@ restart:
|
||||
#endif /* __rtems__ */
|
||||
}
|
||||
|
||||
TSEXIT(); /* Here so we don't overlap with start_init. */
|
||||
|
||||
mtx_assert(&Giant, MA_OWNED | MA_NOTRECURSED);
|
||||
mtx_unlock(&Giant);
|
||||
|
||||
@@ -517,10 +520,7 @@ proc0_init(void *dummy __unused)
|
||||
td->td_flags = TDF_INMEM;
|
||||
td->td_pflags = TDP_KTHREAD;
|
||||
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);
|
||||
td->td_domain.dr_policy = td->td_cpuset->cs_domain;
|
||||
prison0_init();
|
||||
p->p_peers = 0;
|
||||
p->p_leader = p;
|
||||
@@ -730,6 +730,8 @@ start_init(void *dummy)
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
TSENTER(); /* Here so we don't overlap with mi_startup. */
|
||||
|
||||
td = curthread;
|
||||
p = td->td_proc;
|
||||
|
||||
@@ -823,6 +825,7 @@ start_init(void *dummy)
|
||||
*/
|
||||
if ((error = sys_execve(td, &args)) == EJUSTRETURN) {
|
||||
mtx_unlock(&Giant);
|
||||
TSEXIT();
|
||||
return;
|
||||
}
|
||||
if (error != ENOENT)
|
||||
|
Reference in New Issue
Block a user