Fix the non-KSTACK_GUARD case.. It has been broken since the KSE

commit.  ptek was not been initialized.
This commit is contained in:
peter 2001-11-17 01:56:04 +00:00
parent af748d5a05
commit fe91520d39
2 changed files with 2 additions and 0 deletions

View File

@ -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++) {
/*

View File

@ -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++) {
/*