Initialize td->td_pcb->pcb_ext in cpu_thread_setup() since a garbage
value (e.g. 0xd0d0d0d0) can cause a kernel panic.
This commit is contained in:
parent
9a8f0922c0
commit
9a8771a64b
@ -309,6 +309,7 @@ cpu_thread_setup(struct thread *td)
|
||||
td->td_pcb =
|
||||
(struct pcb *)(td->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
|
||||
td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb - 16) - 1;
|
||||
td->td_pcb->pcb_ext = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user