diff options
author | peter <peter@FreeBSD.org> | 2001-11-17 01:56:04 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-11-17 01:56:04 +0000 |
commit | fe91520d395f7879be049a289cbac3389fed1749 (patch) | |
tree | e313ac347c51845a5eba70da41a8299d0d77194d | |
parent | af748d5a05768a4d3415729bdae7304946c5ae98 (diff) | |
download | FreeBSD-src-fe91520d395f7879be049a289cbac3389fed1749.zip FreeBSD-src-fe91520d395f7879be049a289cbac3389fed1749.tar.gz |
Fix the non-KSTACK_GUARD case.. It has been broken since the KSE
commit. ptek was not been initialized.
-rw-r--r-- | sys/amd64/amd64/pmap.c | 1 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 5fd3aa9..39c6028 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++) { /* 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++) { /* |