diff options
-rw-r--r-- | sys/ia64/ia64/vm_machdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/ia64/ia64/vm_machdep.c b/sys/ia64/ia64/vm_machdep.c index 027010d..59725b6 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; |