diff options
| author | Ken Smith <kensmith@FreeBSD.org> | 2004-03-29 01:24:13 +0000 |
|---|---|---|
| committer | Ken Smith <kensmith@FreeBSD.org> | 2004-03-29 01:24:13 +0000 |
| commit | aa89d858c96479c931318bd9a8fb1c90c6c14eba (patch) | |
| tree | 38afc7e4183da8b8dd195cf6f60e424f6c549651 | |
| parent | 87e47750f2e5250e714d50e272b1fa0fcb013157 (diff) | |
Notes
| -rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index cb21b7311c52..459aaf65b11a 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -43,7 +43,6 @@ * $FreeBSD$ */ -#include "opt_kstack_pages.h" #include "opt_pmap.h" #include <sys/param.h> @@ -158,7 +157,7 @@ cpu_thread_setup(struct thread *td) { struct pcb *pcb; - pcb = (struct pcb *)((td->td_kstack + KSTACK_PAGES * PAGE_SIZE - + pcb = (struct pcb *)((td->td_kstack + td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x3fUL); td->td_frame = (struct trapframe *)pcb - 1; td->td_pcb = pcb; @@ -240,8 +239,8 @@ cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) /* The pcb must be aligned on a 64-byte boundary. */ pcb1 = td1->td_pcb; - pcb2 = (struct pcb *)((td2->td_kstack + KSTACK_PAGES * PAGE_SIZE - - sizeof(struct pcb)) & ~0x3fUL); + pcb2 = (struct pcb *)((td2->td_kstack + td2->td_kstack_pages * + PAGE_SIZE - sizeof(struct pcb)) & ~0x3fUL); td2->td_pcb = pcb2; /* |
