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:
Tor Egge 2003-06-02 20:43:28 +00:00
parent 786a6905ec
commit c7251aede7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115728

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