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:
parent
f6584937ae
commit
d2f70b2e81
@ -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_ */
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user