mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
Initialize compatibility epoch tracker for thread0. Fixes
panics for drivers that call if_maddr_lock() during startup. Reported by: cy
This commit is contained in:
parent
93840fdef6
commit
905837ebe7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340443
@ -52,6 +52,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/epoch.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/filedesc.h>
|
||||
@ -510,6 +511,7 @@ proc0_init(void *dummy __unused)
|
||||
td->td_pflags = TDP_KTHREAD;
|
||||
td->td_cpuset = cpuset_thread0();
|
||||
td->td_domain.dr_policy = td->td_cpuset->cs_domain;
|
||||
epoch_thread_init(td);
|
||||
prison0_init();
|
||||
p->p_peers = 0;
|
||||
p->p_leader = p;
|
||||
|
Loading…
Reference in New Issue
Block a user