mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
6729cb8800
commit
720c992fe1
2 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue