From fe91520d395f7879be049a289cbac3389fed1749 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 17 Nov 2001 01:56:04 +0000 Subject: Fix the non-KSTACK_GUARD case.. It has been broken since the KSE commit. ptek was not been initialized. --- sys/i386/i386/pmap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/i386') diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 5fd3aa9..39c6028 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/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++) { /* -- cgit v1.1