Save the floating point context to the right pcb in cpu_fork(), and add

an empty stub for is_physical_memory().
This commit is contained in:
tmm 2001-10-12 15:58:48 +00:00
parent f6584937ae
commit d2f70b2e81
2 changed files with 9 additions and 1 deletions

View File

@ -47,6 +47,7 @@ void cpu_identify(u_int clock);
void cpu_reset(void);
int fill_fpregs(struct thread *td, struct fpreg *fpregs);
int fill_regs(struct thread *td, struct reg *regs);
int is_physical_memory(vm_offset_t addr);
void swi_vm(void *v);
#endif /* !_MACHINE_MD_VAR_H_ */

View File

@ -98,7 +98,7 @@ cpu_fork(struct thread *td1, struct proc *p2, int flags)
td1->td_pcb->pcb_fpstate.fp_fprs = rd(fprs);
if ((td1->td_frame->tf_tstate & TSTATE_PEF) != 0) {
mtx_lock_spin(&sched_lock);
savefpctx(&pcb->pcb_fpstate);
savefpctx(&td1->td_pcb->pcb_fpstate);
mtx_unlock_spin(&sched_lock);
}
/* Make sure the copied windows are spilled. */
@ -162,6 +162,13 @@ cpu_wait(struct proc *p)
{
}
int
is_physical_memory(vm_offset_t addr)
{
TODO;
}
void
swi_vm(void *v)
{