aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-03-27 17:44:25 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-03-27 17:44:25 +0000
commit60f66d917415c1aa49471fdab2bd62c324ac2dc2 (patch)
tree501326051abc1d9ffeba6eff6e564ef428b82248 /sys
parent879d6c230682d852ebe9c91ed469c0c14b04cbd3 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/ia64/ia64/vm_machdep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/ia64/ia64/vm_machdep.c b/sys/ia64/ia64/vm_machdep.c
index 027010d54094..59725b6bed30 100644
--- a/sys/ia64/ia64/vm_machdep.c
+++ b/sys/ia64/ia64/vm_machdep.c
@@ -67,8 +67,6 @@
* rights to redistribute these changes.
*/
-#include "opt_kstack_pages.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
@@ -129,7 +127,7 @@ cpu_thread_setup(struct thread *td)
{
intptr_t sp;
- sp = td->td_kstack + KSTACK_PAGES * PAGE_SIZE;
+ sp = td->td_kstack + td->td_kstack_pages * PAGE_SIZE;
sp -= sizeof(struct pcb);
td->td_pcb = (struct pcb *)sp;
sp -= sizeof(struct trapframe);
@@ -257,7 +255,7 @@ cpu_fork(struct thread *td1, struct proc *p2 __unused, struct thread *td2,
* create an image of the parent's stack and backing store and
* adjust where necessary.
*/
- stackp = (char *)(td2->td_kstack + KSTACK_PAGES * PAGE_SIZE);
+ stackp = (char *)(td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE);
stackp -= sizeof(struct pcb);
td2->td_pcb = (struct pcb *)stackp;