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
786a6905ec
commit
c7251aede7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115728
@ -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