Finish tidying up a couple of leftovers from the KSTACK_PAGES stuff. Some

files still #included the opt_ file.  powerpc hadn't been updated yet.
This commit is contained in:
Peter Wemm 2004-03-29 19:38:05 +00:00
parent 449dfbbc83
commit 5c89deaefc
4 changed files with 6 additions and 12 deletions

View File

@ -44,7 +44,6 @@
__FBSDID("$FreeBSD$");
#include "opt_isa.h"
#include "opt_kstack_pages.h"
#include "opt_cpu.h"
#include <sys/param.h>

View File

@ -44,7 +44,6 @@
__FBSDID("$FreeBSD$");
#include "opt_isa.h"
#include "opt_kstack_pages.h"
#include "opt_npx.h"
#ifdef PC98
#include "opt_pc98.h"

View File

@ -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>
@ -139,8 +137,8 @@ cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags)
p1 = td1->td_proc;
pcb = (struct pcb *)((td2->td_kstack + KSTACK_PAGES * PAGE_SIZE -
sizeof(struct pcb)) & ~0x2fU);
pcb = (struct pcb *)((td2->td_kstack +
td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fU);
td2->td_pcb = pcb;
/* Copy the pcb */
@ -357,7 +355,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 + td2->td_kstack_pages * PAGE_SIZE -
sizeof(struct pcb)) & ~0x2fU);
td->td_pcb = pcb;
td->td_frame = (struct trapframe *)pcb - 1;

View File

@ -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>
@ -139,8 +137,8 @@ cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags)
p1 = td1->td_proc;
pcb = (struct pcb *)((td2->td_kstack + KSTACK_PAGES * PAGE_SIZE -
sizeof(struct pcb)) & ~0x2fU);
pcb = (struct pcb *)((td2->td_kstack +
td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fU);
td2->td_pcb = pcb;
/* Copy the pcb */
@ -357,7 +355,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 + td2->td_kstack_pages * PAGE_SIZE -
sizeof(struct pcb)) & ~0x2fU);
td->td_pcb = pcb;
td->td_frame = (struct trapframe *)pcb - 1;