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:
tegge 2003-06-02 20:43:28 +00:00
parent 9a8f0922c0
commit 9a8771a64b

View File

@ -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;
}
/*