- Add in missing event handler invokes for initial proc and thread.
This commit is contained in:
parent
f6d6295dd9
commit
7c7454fe95
@ -371,7 +371,7 @@ proc0_init(void *dummy __unused)
|
||||
GIANT_REQUIRED;
|
||||
p = &proc0;
|
||||
td = &thread0;
|
||||
|
||||
|
||||
/*
|
||||
* Initialize magic number.
|
||||
*/
|
||||
@ -488,6 +488,16 @@ proc0_init(void *dummy __unused)
|
||||
p->p_sysent->sv_maxuser);
|
||||
vmspace0.vm_map.pmap = vmspace_pmap(&vmspace0);
|
||||
|
||||
/*-
|
||||
* call the init and ctor for the new thread and proc
|
||||
* we wait to do this until all other structures
|
||||
* are fairly sane.
|
||||
*/
|
||||
EVENTHANDLER_INVOKE(process_init, p);
|
||||
EVENTHANDLER_INVOKE(thread_init, td);
|
||||
EVENTHANDLER_INVOKE(process_ctor, p);
|
||||
EVENTHANDLER_INVOKE(thread_ctor, td);
|
||||
|
||||
/*
|
||||
* Charge root for one process.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user