aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 5fd3aa934c0f..39c6028e2d31 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -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++) {
/*