Use cpufunc macros instead of using inline asm directly.

This commit is contained in:
Jake Burkholder 2002-01-08 05:10:58 +00:00
parent 79dba4cb34
commit 90a801d702
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89044

View File

@ -121,7 +121,7 @@ cpu_fork(struct thread *td1, struct proc *p2, int flags)
mtx_unlock_spin(&sched_lock);
}
/* Make sure the copied windows are spilled. */
__asm __volatile("flushw" : :);
flushw();
/* Copy the pcb (this will copy the windows saved in the pcb, too). */
bcopy(td1->td_pcb, pcb, sizeof(*pcb));