Fix the non-KSTACK_GUARD case.. It has been broken since the KSE
commit. ptek was not been initialized.
This commit is contained in:
parent
af748d5a05
commit
fe91520d39
@ -1036,6 +1036,7 @@ pmap_new_thread(struct thread *td)
|
||||
panic("pmap_new_thread: kstack allocation failed");
|
||||
td->td_kstack = ks;
|
||||
}
|
||||
ptek = vtopte(ks);
|
||||
#endif
|
||||
for (i = 0; i < KSTACK_PAGES; i++) {
|
||||
/*
|
||||
|
@ -1036,6 +1036,7 @@ pmap_new_thread(struct thread *td)
|
||||
panic("pmap_new_thread: kstack allocation failed");
|
||||
td->td_kstack = ks;
|
||||
}
|
||||
ptek = vtopte(ks);
|
||||
#endif
|
||||
for (i = 0; i < KSTACK_PAGES; i++) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user