Set thread0->td_pcb, this is probably why jake was getting a null deref.
This commit is contained in:
parent
716c312b94
commit
949224d60e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83442
@ -245,6 +245,7 @@ sparc64_init(struct bootinfo *bi, ofw_vec_t *vec)
|
||||
proc0.p_stats = &proc0.p_uarea->u_stats;
|
||||
thread0 = &proc0.p_thread;
|
||||
thread0->td_kstack = proc0kstack;
|
||||
thread0->td_pcb = (struct pcb *)thread0->td_kstack;
|
||||
tf = (struct trapframe *)(thread0->td_kstack + KSTACK_PAGES *
|
||||
PAGE_SIZE) - 1;
|
||||
tf->tf_tstate = TSTATE_IE;
|
||||
|
Loading…
Reference in New Issue
Block a user